Tuesday, August 28, 2007

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 http://visualstudiohacks.com/navtricks

No comments: