Keyboard Shortcut for Toggle Comment

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Mark
Posts: 2
Joined: Tue Mar 21, 2006 12:28 am

Keyboard Shortcut for Toggle Comment

Post 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?
Radu
Posts: 9470
Joined: Fri Jul 09, 2004 5:18 pm

Post 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
Mark
Posts: 2
Joined: Tue Mar 21, 2006 12:28 am

Post by Mark »

Thanks. Toggle comment with a keyboard shortcut works just as I want. I used ctrl shift COMMA (that is, crtl <).
Post Reply