visual studio C++ toggle comment ? comment while not whole line is selected ?
- by Mr_and_Mrs_D
2 questions actually :
1) shortcut to toggle comment on selected lines ? Available on all iDEs I used starting with notepad++
2)the ctrl-k, ctrl-c exhibits this behavior (quoted from someplace nicely worded):
C#: Each line where some text is
selected is commented at the
line-start with double-slash. If
nothing is selected, the line where
the cursor is is commented.
C++: If nothing is selected or
complete lines are selected, it
behaves as above. However, if parts of
a line are selected, and no comment is
selected as part of the selection (ex.
select something in the middle of a
code line), then the selection is
surrounded by /* and */.
since I code in C++ I find this behavior annoying - I want to be able to comment out lines partially selected - any workarounds ?