eclipse shortcut settings

1. Set the code to automatically format
java->editor->Save Actions->Format Source Code

 

2.  Eclipse background color modification

The default color of the operation interface is white. For those of us who use computer programming for a long time, white is very irritating to our eyes, so I often change the background color of the workspace to make the eyes more comfortable. The setting method is as follows:  1. Open windows->Preference-> General->Editors-> Text Editors, the Text Editors panel appears on the right. There is such an option in the panel: Appearance color options; which are the settings of various plate colors, one of which is background color, choose the color according to your own preferences. 
2. Select the background color, uncheck System Default, click 'color', the color selection panel will pop up, select the color you like, and click OK. 
3. Go back to Text Editors and click Apply. Expand Test Editors, there are other options, such as the color style of the error prompt, if you are interested in this, you can try changing it. 

Background color recommended to you: Hue: 85. Saturation: 123. Brightness: 205 
documents are no longer dazzling black characters on a white background, but a very soft bean paste green. This color is configured by ophthalmologists . Long-term use will effectively relieve eye fatigue and protect eyes.
3. Character set settings  

(1), windows->Preferences... Open the "Preferences" dialog box, navigate the tree on the left, navigate to general->Workspace, Text file encoding on the right, select Other, change to UTF-8, and create a new project later The Text file encoding in its properties dialog box is UTF-8.

(2), windows->Preferences... Open the "Preferences" dialog box, navigate the tree on the left, navigate to general->Content Types, the Content Types tree on the right, click on Text, select Java Source File, in the following Enter UTF-8 in the Default encoding input box, click Update, then set the Java file encoding to UTF-8. Then set the Default encoding of jsp, js, css and other types in the same way as Java Source File.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326524747&siteId=291194637