Visual studio handy Shortcuts

Considering your code and you want to comment a block of code using your keyboard!!
Well…no worries…
Select the code you want to comment
Press Ctrl + K + C
to Uncomment the code
Press Ctrl + K + U

Unfortunately unlike eclipse it dosent use the same shortcut to comment and uncomment the code.

Another good editing shortcut:
Have you ever tried to delete a line, and then started to use backspaces or del keys to format the code?
Well…if you do want to remove the line completely….even without selecting the whole line
press Shift + Del and the line will dissapear without affecting anything else

Collapse all Regions / Blocks
Ctrl + M + O

some good shortcuts given at


Leave a Reply / Comment

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s