Skip to content

Tip 2.5: How to quickly comment and uncomment code using keyboard shortcuts

December 2, 2011

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

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 development settings have these commands bound to these keyboard shortcuts.

You can find these commands under the Edit–Advanced Comment Selection :

Happy Programming! =)

Leave a Comment

Leave a comment