Ah, it really is the simple things in life, isn’t it?

Use Ctrl+K, Ctrl+C to comment code and Ctrl+K, Ctrl+U to uncomment code.  All the default settings, including the General Development Settings, Visual Basic, C#, and C++ have these commands bound to this keyboard shortcut.

You can find these commands under the Edit – Advanced menu at

Comment and Uncomment Code Menu Items

If your keybindings are different, check out yesterday’s tip on how to see what command is bound to what keyboard shortcut.

Technorati tags: VS2005Tip, VS2008Tip