Page 1 of 1

Keyboard Shortcut for Toggle Comment

Posted: Tue Mar 21, 2006 12:35 am
by Mark
In version 7.0 I was able to comment selections using ctrl+/ after once using the "comment selection" option. With version 7.1 the comment/uncomment selection options have been replaced with "toggle comment". Now I cannot see a way to make the ctrl+/ comment a selection. Is there another way to make this work or is there a keyboard shortcut to toggle comments?

Posted: Tue Mar 21, 2006 10:03 am
by Radu
Dear Mark

Because, starting with the 7.1 version the two (comment/uncomment) actions were refactored into one toggle comment action, we removed the Comment action available in the the Pop-up menu Refactoring->Surround with.... because it did not seem necessary anymore.
You can configure a shortcut for the Toggle Comment action by going to Options->Preferences->Menu Shortcut Keys, sorting the keys by description and then setting a shortcut for the Toggle Comment action.
Also I will revert some changes and add the Comment action also in the Refactoring->Surround with.... menu so that starting with 7.2 so you will be able to comment again using Ctrl+/ to repeat the last Surround With action.

Regards, Radu

Posted: Tue Mar 21, 2006 5:23 pm
by Mark
Thanks. Toggle comment with a keyboard shortcut works just as I want. I used ctrl shift COMMA (that is, crtl <).