Block Comments.
Like many of the things I discover only to find out that somebody else thought of it first is a handy way of blocking out large portions of code for testing.
code
code
/*
code
code
*/
code
code
Normall to enable the code that is commented you have to either delete or single line comment both the start and end markers for the multi line comment. This gets old quick. My solution is to leave a line comment before the end marker like so:
code
code
/*
code
code
//*/
code
code
Now to enable the block of code I simply comment out the start of the multi line comment. The end marker becomes it’s own single line comment.
code
code
///*
code
code
//*/
code
code