« ADF Faces Pages under WEB-INF Directory Do Not Render Correctly in 10.1.3.1 | Main | Another Example of Code Template »

"Toggle Line Comments" Accelerator Does Not Work on All Keyboards


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:
ShiftColon:

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:
Accelerator_1:

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:
Accelerator_2:

and your accelerator is now defined:
Accelerator_3:

Click OK
The Toggle Comment Lines accelerator will now work.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on November 24, 2006 11:48 AM.

The previous post in this blog was ADF Faces Pages under WEB-INF Directory Do Not Render Correctly in 10.1.3.1.

The next post in this blog is Another Example of Code Template.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle