I read that great post on Visual Studio 2008 annoyances, but didn't see this one. It drives me crazy. Now, I realize that some people use block comments like this for function documentation and the like:
/*
*
*
*
*/
But you know, this is VS2008 and now we can use ///. The only time I ever feel the need to use C-style commenting is when I have some junk or test code that I temporarily want to remove. It absolutely drives me nuts when I do the first /*
and then when I add a line after the test code, it automatically puts a space after the * and I end up with this: * /
. So then I end up always having to backspace to complete the block comment.
I looked through all of the C# editor settings in the VS2008 IDE, and didn't find anything relevant.
Does this drive anyone else here crazy, or am I turning into a codemudgeon?
I just avoid the block comments and instead I select the block and hit ctrl-k-c which will automatically comment out a whole block with //
on each line. To undo it select the block and hit ctrl-k-u to uncomment the block. It doesn't fix the extra space issue, but it lets you not care.
Without losing XML comments functionality, you can use #if to exclude code frahments, for example:
#if EXCLUDED any code ... #endif
In C++ use #if 0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With