Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Block commenting

4 views
Skip to first unread message

Aaron Creed

unread,
Apr 22, 2010, 7:17:31 PM4/22/10
to
When I used MSVC++ 6.0 I was fond of Adam Solesby's commeting macro
(solesby.dsm), where I could (un)comment a block of source code (using
multiple individual line comments) with a ctrl-/.
Recently I used MSVC++ 2010 and found my trusty ctrl-/ no longer does
the trick. For those interested, I was able to regain some of solesby
functionality via the Edit : Advanced : Comment Selection feature. It
is built into 2010 IDE (and probably earlier versions) via the Ctrl-k
Ctrl-c (comment) and Ctrl-k ctrl-u (uncomment) shortcuts. I wasn't
fond of these, but they can be remapped to be more like solesby:
- Goto Tools : Options : Environment : Keyboard
- In the "Show command containing" edit, type Edit.CommentSelection
- In the "Press shortcut keys" edit, type ctrl-/
- Click assign.
- In the "Show command containing" edit, type Edit.UncommentSelection
- In the "Press shortcut keys" edit, type ctrl-' (or whatever you want
to use for uncomment)
- Click assign.

Tom Serface

unread,
Apr 29, 2010, 7:37:12 PM4/29/10
to
You can also use the easy to access toolbar buttons. Very functional.

Tom

"Aaron Creed" <b...@computermail.net> wrote in message
news:dd970493-7506-41ed...@z3g2000yqz.googlegroups.com...

0 new messages