Eclipse has a lot of powerful and user-friendly features, and the features are sometimes hidden deep (need to click several menus to find), and the system provides shortcut keys are sometimes difficult to remember or even provide shortcut keys, you need to manually set the shortcut keys. There are two setup methods, including manual setup and import of configuration files.
Tools/Materials
Manual Setup Method/step
- 1
Click on the Window menu->preferences submenu->general->keys, enter the shortcut key management interface
- 2
Here you can find all the functions of the shortcut keys, need to modify or add new, click the need to modify or add the command, set the shortcut key in the binding
- 3
After setting the shortcut, you also need to set when you can use the shortcut, Eclipse provides a variety of scenarios to choose from, generally choose in Windows (that is, in the Eclipse Window activation state) can
- 4
Complete the above operation, click OK to complete the setup
END
Import configuration file methods/steps
After a lot of custom shortcuts have been set up on a machine, it is necessary to copy the shortcut keys by importing the configuration file by using the custom shortcut keys in other machines.
First in the original machine export shortcut key file, in the original Machine Workspace workspace folder open \workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings, Locate Org.eclipse.ui.workbench.prefs File
- 3
Copy the Org.eclipse.ui.workbench.prefs file to the same path as the target machine
END
Precautions
If you do not know the specific purpose of its function, you can check the description in description
Although the Export shortcut key setting is available in Windows->preference->general->keys, but there is no import button, it is estimated to be an eclipse bug, so you can only set it by copying the configuration file.
The same machine if you convert the path of the workspace workspace, the original custom shortcut keys will also be reset, this from the configuration file in the workspace directory can be seen, custom shortcut keys are based on workspace, all conversion workspace need to re-copy the configuration file
Eclipse settings custom shortcut keys