Common settings in eclipse:
1. Eclipse is set to automatically remove excess import and formatting code when saving
Path:
Window----preferences---------Save Actions
Check Perform the selected actions on save
Select Format Source Code
Select Organize imports
This enables Shift+ctrl+o and ctrl+shift+f to be executed at save time.
2. Set code automatic hint in eclipse
Path:
Window---preferences---editor-->content Assist
After the point is opened, look down, there is an auto activation trigger for Java, you will see only one. exists. Indicates that only input. Then there will be code hints
After the. Complete 26 English letters, such as ABCDEFG ...., so the code at any beginning will prompt. Click OK to set the success.
3. Background color modification in eclipse (Turn on eye protection mode)
Path:
Window--Preferences-->general--> Editor-->text Editors
The text editors panel appears on the right, and there is an option in the Panel: Appearance color options;
There is a variety of palette color settings, one of which is background color, choose color according to your preference.
Select background color, tick off system Default, click ' Color ', pop up the color selection panel, select the color you prefer, and click OK.
Return to text Editors, click Apply.
Background color recommended: Hue: 85. Saturation: 1 2 3. Brightness: 2 0 5
Documents are no longer the glare of the white black word, but very soft red bean paste green, this tone is the eye specialist configuration, long-time use will be effective to alleviate eye fatigue to protect the eyes.
4. Font size modification in eclipse
Path:
Window->preference->general->apperance->colors and Fonts
By selecting the Text font for editing on the right Basic, the Basic-->text font can control both XML and JSP without affecting the Java settings.
Click Editor in the upper-right corner to set it up.
Tips for using shortcut keys:
1. Add comments quickly
ctrl+/Add//
2. How to quickly see the value of a variable when debugging
Select the variable that you want to view the value for, and then Ctrl+shift+i
3, manually remove the excess import Package and Automatic Guide package
Ctrl Shift + O
4. Manual Format Code
English input status, ctrl+shift+f
5. View the implementation class or parent class of a class
English input status, ctrl+t
Eclipse settings and shortcut key Usage summary (in update)