Eclipse shortcut keys and tips for using them

Source: Internet
Author: User

First, the program's compilation and operation of the environment configuration (generally do not change)

Window--Preferences--Java
Compilation environment: Compiler the highest version is selected by default.
Operating environment: Installed JREs will find the JDK you installed by default. We recommend that you configure the environment variables for Java.
Problem:
Low compile, high run. OK.
High compilation, Low run. No.
It is recommended that you compile and run the same version.

Second, how to remove the default comment?

Window--Preferences--Java--code Style--code Templates
Select the content you do not want and edit it by editing it on the right.
Note: Please delete only the comments section, not the comments section.

Third, the line number display and hide

Display: In the left-most blank area of the code area, right-show line numbers.
Hide: Do the above action again.

Font size and color A:java the font size and color of the code area:

Window--Preferences--general--appearance--Colors and Fonts--java Modify--Java Edit Text Font

B: Console

Window--Preferences--general--appearance--Colors and Fonts--Debug--Console font

C: Other documents

Window--Preferences--general--appearance--Colors and Fonts--Basic--Text Font

Five, the form to mess up, how to do?

Window--Reset perspective

Six, the console can not find, how to do?

Window--show View-console

Vii. Cancellation of suspension tips

Window--Preferences--java--editor--hovers. On the right, remove the combined hover hook.
The floating box of the code does not appear automatically. If you want to see a hint, hover your cursor over the code and press F2.

Viii. use of Content-assisted keys in eclipse

a:alt+/Cue function
b:main+alt+/,syso+alt+/, give other hints
C: Add Output statement, select the part that needs output, alt+/Select the last item
C: Define your own ALT +/
Windows--perference-java-editor-templates--new

Ix. use of shortcut keys in eclipse

A: New CTRL + N
B: Formatted ctrl+shift+f
C: Import Package Ctrl+shift+o
D: Comment ctrl+/,ctrl+shift+/,ctrl+shift+\
E: Move the code up or down the selected code ALT + up/down arrows
F: Check the source code selected class name (F3 or CTRL + mouse click)
G: Find the specific class CTRL + SHIFT + T
H: Specific ways to find specific classes CTRL + O
I: Give advice to ctrl+1, generate the left data type according to the right, generate method
J: Remove Code CTRL + D
K: Extraction method ALT + SHIFT + M
L: Renaming ALT + SHIFT + R

X. How to improve development efficiency in eclipse

ALT + SHIFT + S
A: Automatic generation of construction methods
B: Automatic generation of Get/set methods

Eclipse shortcut keys and tips for using them

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.