Comment trick

Maybe I’m the last to know, but I recently learned this little trick. When temporarily commenting out a block of code in a C++ flavored language, close the comments with // */. This lets you to toggle the code on and off using only the opening /*.

Old way

/*
disabled_command();
*/

New way

/*
disabled_command();
// */

Thanks Zach.

Tags: