coment a block of code

  • Thread starter Thread starter GS
  • Start date Start date
G

GS

how can one quickly comment out a block of selected code in visual studio
express 2005

the insert comment is only good for a block of comment before sub, function

right now I would have to cut and do transform with another C editor before
copying and pasting back
 
GS,

I don't know if it is in the express versions, otherwise it are those
buttons with two black, three light blue lines and than 2 black lines, just
go with your mouse over your toolbar to see if it is there.

Cor
 
GS said:
how can one quickly comment out a block of selected code in visual
studio express 2005

Try selecting the code, then pressing Ctrl+K and then Ctrl+C. This should
add a comment to the start of every highlighted line. To remove the
comments, select the block once again and press Ctrl+K and then Ctrl+U.
Sadly there is no "block comment" such as C's /* */ in VB, so this is as
good as it gets.

HTH,
 
Good answers. thank you.both

Oenone said:
Try selecting the code, then pressing Ctrl+K and then Ctrl+C. This should
add a comment to the start of every highlighted line. To remove the
comments, select the block once again and press Ctrl+K and then Ctrl+U.
Sadly there is no "block comment" such as C's /* */ in VB, so this is as
good as it gets.

HTH,
 
Back
Top