Aaron Creed
unread,Apr 22, 2010, 7:17:31 PM4/22/10You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.