Various usage instructions for Eclipse

Source: Internet
Author: User

1. Change font and size

2. Configuring the JRE Environment


The JRE in eclipse refers to the JDK









3. Set font size for text editor


4. Set the default project encoding




The source folder does not appear after the 5.maven project is established




6. The project JRE has been changed since the error


7. How to use Sysout in MyEclipse


In the MyEclipse6.0 shortcut key to our habitual use of the alt+/code automatically filled in the shortcut to the CTRL + space, we know that this is our switch between the English input method key, so we need to change this shortcut key, the method is as follows:
1. Select window->preferences; in the MyEclipse6.0 menu bar
2. Select general->keys;
3. Then select content Assist Click Remove Binding, enter alt+/in the binding, select editing Text in when;
5. Click OK to go.

8. Shortcut keys:

Input sysout, press alt+/

Single-line Comment: crtl+/

Renaming
Alt + Shift + R file or variable rename (select the file or variable and press the shortcut key at the same time)

Quick Lead Package
Ctrl + Shift + O automatically import the required packages and delete the extra import statements

Code formatting
Ctrl + Shift + F code formatting

Delete, copy of line of code
Ctrl + D Deletes the cursor in the row
Ctrl + Alt +↑ copy up and paste the cursor in the row



9. Word Matching

10.ctrl+t gets the class that inherits the class



11. Configure the schema path






12. Code Hint Completion settings







13. Ordering of Code members





14. Make the package tree-like display



1. Press CTRL and F10, a dialog window appears, then select Show line number

2. Click the right mouse button at the edge of the Code box, and there will be the above options

When I started to learn Java, I wrote the code under Eclipse because he was too handy, too powerful, and had a strong ability to correct errors. There was less code to write at the beginning, dozens of lines, one hundred or two hundred lines, the line number seemed useless to me, and Eclipse would show the cursor's line number and column number in the lower right corner. But recently wrote a lot of program code, wrong is very inconvenient. And in learning Android phone program development, using XML parsing files, there will be no line number display, the error after the number of lines, I believe the eclipse developers must have thought of this, eclipse will certainly have this feature.


-----------------------


change eclipse background color from white to red bean

The Setup method is as follows:

1. Open window->preference, eject Preference panel

2. Expand the General tab, select the Editors option, and expand.

3. Check test Editors, the test Editors panel appears on the right.
There is an option in the Panel: Appearance color options, which is a variety of plate color settings, one of which is background color, choose the color according to your preference.

4. Select background color, tick off system Default, click ' Color ', pop up the color selection panel, select the color you prefer, and click OK.

5. Return to text Editors, click Apply.


Expand the text Editors, and there are other options, such as the color style of the error prompt, and if you're interested in it, try to change it.

Background color recommended to you: Hue: 85. Saturation: 123. Brightness: 205

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

PS: Effects such as











Various usage instructions for Eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.