Eclipse Smart Tips and shortcuts, and eclipse smart shortcuts

Source: Internet
Author: User

Eclipse Smart Tips and shortcuts, and eclipse smart shortcuts
1. java smart prompt

(1) Open Eclipse and select "Window-Preferences ".

(2) Select "Java-Editor-Content Assist" in the directory tree, and find the "Auto Activation triggers for java" option on the right side of "Auto-Activation. The "." symbol is triggered by default.

(3) In the "Auto Activation triggers for java" option, change "." To. abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

2. XML smart prompt

(1) Open Eclipse and select "Window-Preferences ".

(2) Select "XML-Editor-Content Assist" in the directory tree, and find the "Prompt when these characters are inserted" option in "Auto-Activation" on the right.

(3) In the "Prompt when these characters are inserted" option, change "<=:," Change: <=:. abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW (,

3. Shortcut Keys

(1) Ctrl + Space

Description: Content assistant. Provides prompts for methods, variables, parameters, and javadoc, which should be used in various scenarios. In short, you can press this shortcut key when prompted. Note: do not conflict with the input method switching settings.

(2) Ctrl + Shift + Space

Note: Variable prompt

(3) Ctrl +/

Note: Add/Remove // comment. In eclipse2.0, the Comment for elimination is Ctrl + \

(4) Ctrl + Shift +/

Note: Add/**/comment

(5) Ctrl + Shift + \

Note: delete/**/comment

(6) Ctrl + Shift + F

Note: The code is automatically formatted.

(7) Ctrl + 1

Note: you can modify variable names in source code in batches and use them on catch blocks.

(8) Ctril + F6

Note: interface switching

(9) Ctril + Shift + M

Note: Find the desired package

(10) Ctril + Shift + O

Note: The required package is automatically introduced.

(11) Ctrl + Alt + S

Note: Quick menu for source code. Generate getters and setters and Surround with try/catchblock are commonly used. We recommend that you add them as shortcut Keys. The shortcut Keys are set on windows> preferences> Workbench> Keys.

4. Tracking

Return F7 in one step

Skip F6 in one step

Step-by-Step Jump to F5

Step by step, select Ctrl + F5

Debug F11 last started

Continue F8

Use the filter to perform Shift + F5 in one step

Add/Remove breakpoint Ctrl + Shift + B

Display Ctrl + D

Run Ctrl + F11

Run to Ctrl + R

Ctrl + U refactoring scope function shortcut

Undo reconstruction Alt + Shift + Z

Extraction Method Alt + Shift + M

Extract the local variable Alt + Shift + L

Inline Alt + Shift + I

Move Alt + Shift + V

Rename Alt + Shift + R

Redo Alt + Shift + Y

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.