Click here to Skip to main content
15,867,686 members
Articles / Programming Languages / Visual Basic 10
Tip/Trick

Commenting

Rate me:
Please Sign up or sign in to vote.
4.33/5 (6 votes)
10 Jun 2010CPOL 12.6K   3   1
Shortcut for Commenting
In Visual Studio 2010,

Select the lines you want to comment, press Control+K then Control+C

To Un-comment lines, select them, press Control+K then Control+U

Or, you can use the Comment and Uncomment buttons in the Standard Toolbar

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralIt works not only in Visual Studio 2010 but in 2005 and 2008... Pin
Sauro Viti23-Jun-10 10:54
professionalSauro Viti23-Jun-10 10:54 
It works not only in Visual Studio 2010 but in 2005 and 2008 too.
GeneralIt's also quite handy to change the shortcut keys that perfo... Pin
Kschuler21-Jun-10 5:34
Kschuler21-Jun-10 5:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.