By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

coment a block of code

P: n/a
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
Nov 5 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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" <gs**********************@msnews.Nomail.comschre ef in bericht
news:em**************@TK2MSFTNGP03.phx.gbl...
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


Nov 5 '06 #2

P: n/a
GS wrote:
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,

--

(O)enone
Nov 5 '06 #3

P: n/a
GS
Good answers. thank you.both

"Oenone" <oe****@nowhere.comwrote in message
news:Rh****************@newsfe7-gui.ntli.net...
GS wrote:
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,

--

(O)enone


Nov 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.