"Toggle Line Comments" Accelerator Does Not Work on All Keyboards
By Didier Laurent on Nov 24, 2006
In the JDeveloper Code Editor, you can select lines and toggle the comments by selecting the menu Source -> Toggle Line Comments.
The corresponding accelerator key is CTRL+/, but it doesn't work for all keyboards.
For example, on my Belgian keyboard, there is no "/" key. The "slash" can only be accessed by pressing simultaneously the SHIFT and ":" ("colon") keys:
To have the accelerator working correctly, you should redefine the accelerator keys mapped to the "Toggle Line Comments" action:
Select menu Tools -> Preferences...
In the Preferences dialog select Accelerators and under Actions select Toggle Line Comments.
Click Remove to remove the current accelerators:
Then click the New Accelerator field and press the keys you would like to associate to the action.
For example, CTRL + SHIFT + : (CTRL + SHIFT + Colon)
The field New Accelerator will display the keys you pressed.
You can then click Add:
and your accelerator is now defined:
The Toggle Comment Lines accelerator will now work.