How do I assign a key sequence to a particular command?
Author: Deron Eriksson
Description: This tutorial shows how to assign a key sequence to a particular command in Eclipse
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 1.5.4


Page: < 1 2

(Continued from page 1)

Go to Window → Preferences → General → Keys. The View tab shows the various shortcut key combinations that already exist. In the Run/Debug Category shown below, there is no key combination for the Terminate command.

Keys

On the Modify tab, we can assign a key combination to the Terminate command. In the Command area, I selected the 'Run/Debug' category followed by the command name 'Terminate'. In the Key Sequence area, I clicked in the Name box and then clicked and held the control button, shift button, and period button. The resulting key combination is shown in the Name box. After that, I clicked the Add button.

Add Key

After clicking the Add button, we get some triangle thingies next to our command and key sequence.

Setting Command and Key Sequence

If you click back to the View tab, you can see that the 'Ctrl+Shift+.' key sequence now exists in the listing for the Run/Debug category's Terminate command.

View Tab

After doing that, we can now hit the Control, Shift, and Period combination to terminate our debug configuration!

Page: < 1 2