MyEclipse shortcut keys (absolutely all) and myeclipse shortcut keys

Source: Internet
Author: User

MyEclipse shortcut keys (absolutely all) and myeclipse shortcut keys
MyEclipse shortcut keys (absolutely all) Thank you very much for sharing this article. But I forgot a few of your blog addresses, so I cannot specify the original address... Sorry.

Save disk Ctrl + s (yes)
Comment code Ctrl +/
Uncomment Ctrl + \ (Eclipse3 has been merged to Ctrl +)
Code-assisted Alt +/
Quick Fix Ctrl + 1
Code formatting Ctrl + Shift + f
Sort and import Ctrl + Shift + o
Switch the window Ctrl + f6 <you can change it to ctrl + tab for convenience>
Ctrl + shift + M import unreferenced package
Ctrl + w close a Single Window
F3 jump class and variable Declaration
F11 run the last program
Ctrl + F11 debug the last program
Alt + back to the next editing point
Ctrl + shift + T search for classes in the project


The most classic shortcut

Ctrl + 1 quick fix (the most classic shortcut, you don't need to talk about it)

Ctrl + D: Delete the current row

Ctrl + Alt + ↓ copy the current row to the next row (copy added)

Ctrl + Alt + ↓ copy the current row to the previous row (copy added)

Alt + ↓ interaction position between the current row and the following row (especially practical, you can save cutting and pasting)

Alt + ↑ interaction between the current row and the previous row (same as above)

Alt + ↓ previous edited page

Alt + → next edited page (of course for the above)

Alt + Enter display the properties of the currently selected resource (project, or file)

Shift + Enter insert empty rows in the next row of the current row (the mouse can be at any position of the current row, not necessarily the last row)

Shift + Ctrl + Enter insert blank lines in the current line (same principle)

Ctrl + Q locate the Last edited location

Ctrl + L locate in a line (for those with more than 100 programs, there will be good news)

Ctrl + M maximize the current Edit or View (then press it, and vice versa)

Ctrl +/comment out the current row, and then press it to cancel the comment

Ctrl + O quick OutLine display

Ctrl + T quickly display the inheritance structure of the current class

Ctrl + W disable the current Editer

Ctrl + K quickly locate to the next one by referencing the selected Word

Ctrl + E: Click it to quickly display the drop-down list of the current Editer (if the current page is not displayed, it is displayed in bold)

Ctrl +/(keypad) collapse all code in the current class

Ctrl + × (keypad) show all the code in the current class

Ctrl + Space Code assistant inserts some code (but it is usually in conflict with the input method, you can modify the Input key, or temporarily use

Alt +/to replace)

Ctrl + Shift + E display the managers that manage all Opened Views (you can choose to close or activate them)

Ctrl + J forward incremental search (after pressing Ctrl + J, each letter editor you enter provides a quick match to locate a word. If no

Yes, it is not found in stutes line. It is particularly useful when querying a word. This feature was available two years ago)

Ctrl + Shift + J reverse incremental search (the same as the previous one, but only from the back to the front)

Ctrl + Shift + F4 close all open Editer

Ctrl + Shift + X convert all selected text to lowercase

Ctrl + Shift + Y change all selected text to lowercase

Ctrl + Shift + F format the current Code

Ctrl + Shift + P locate the matched character (for example, {}) (when positioning from the front, the cursor must be inside the matched character, followed by the front, then reverse

)

The following shortcut keys are commonly used in refactoring. I like them and want to sort them out frequently (Note: Generally, the shortcut keys for refactoring are Alt + Shift.

)

Alt + Shift + R Rename (one of my favorite ones, especially the Rename of variables and classes, can save a lot of labor compared with manual methods.

)

Alt + Shift + M extraction method (this is one of the most common methods in refactoring, especially useful for a lot of mud code)

Alt + Shift + C modify the function structure (more practical. N functions call this method and modify it once)

Alt + Shift + L extract local variables (you can directly extract some magic numbers and strings into one variable, especially when multiple calls are performed)

Alt + Shift + F convert the local variable in the Class to the field variable (more practical)

Alt + Shift + I merge variables (this may be a bit inappropriate Inline)

Alt + Shift + V moving functions and variables (not commonly used)

Alt + Shift + Z restructured regret medicine (Undo)


Alt + left arrow, right arrow to switch tags in the editing window
Alt + up and down arrows to automatically select the row where the mouse is located and move it up and down
Ctrl + f6: A menu is displayed, which lists the Editable window that can be switched.

Switch
Ctrl + f7 can be switched between views, such as editing views, output views, and engineering views.
Ctrl + f8 can be switched between different observation views, that is, between the java view, debugging view, and so on.

Switch
Ctrl + m can be switched between maximizing the current window and restoring the current window
Press Ctrl + e to display the input window. You can enter the code window you want to edit, and press Ctrl + f6.

Can be the same, but one is the choice method, the other is the input method, switch the window
Ctrl + T can directly display the class chart of the content where the cursor is located. You can directly enter it and jump to the input.

Content
Press Ctrl, and point to the variable name, method name, and class name to quickly jump to the source code.
Ctrl + F11 FAST Program Execution
Ctrl + Shift + F Automatic Code Layout
Ctrl + Shift + O automatically add references. Note: if we do not Import any category

Enter ResourceAttirbute ra = new ResourceAttribute (); Eclipse will prompt that no reference category exists.

We only need to press Ctrl + Shift + O, it will automatically help us Import this category. Very convenient
Ctrl +/annotate the selected block: it is convenient to Debug.
Alt +/is the most commonly used code to assist everyone.
Ctrl + h search to open the Search dialog box
Ctrl + Shift + Space parameter prompt. If the cursor is located in the method body, a prompt is displayed for the method parameter, where the current cursor is located.

The location parameters are displayed in bold.


Shortcut for scope Function
Globally search and replace Ctrl + F
Search for the previous Ctrl + Shift + K in the text editor
Search for the Next Ctrl + K in the text editor
Globally undo Ctrl + Z
Global copy Ctrl + C
Select Alt + Shift + continue for global recovery.
Globally cut Ctrl + X
Global quick correction Ctrl1 + 1
Global content assist Alt +/
Globally select Ctrl +
Delete globally
Global context information Alt +?
Alt + Shift +?
Ctrl + Shift + Space
Java editor display tooltip description F2
Java editor selects the encapsulation element Alt + Shift + Transform
Java editor selects the previous element Alt + Shift + ↓
Select the next element Alt + Shift + →
Text Editor incremental search Ctrl + J
Text Editor incremental reverse lookup Ctrl + Shift + J
Globally paste Ctrl + V
Global redo Ctrl + Y


View
Shortcut for scope Function
Zoom in globally Ctrl + =
Ctrl +-


Window
Shortcut for scope Function
Global activation editor F12
Global switch editor Ctrl + Shift + W
Global editor Ctrl + Shift + F6
Global View Ctrl + Shift + F7
Global Perspective Ctrl + Shift + F8
The next global editor Ctrl + F6
Next Global View Ctrl + F7
Ctrl + F8
Text Editor display ruler context menu Ctrl + W
Global View menu Ctrl + F10
Global display of System Menu Alt +-


Navigation
Shortcut for scope Function
Open the structure Ctrl + F3 in the Java editor.
Global Open type Ctrl + Shift + T
Global Open Type hierarchy F4
Global open declaration F3
Open external javadoc Shift + F2 globally
Globally open resource Ctrl + Shift + R
Global rollback history Alt + rollback
Global forward history Alt + →
Ctrl +,
Ctrl +.
Java editor display outline Ctrl + O
Globally open the type Ctrl + Shift + H in the hierarchy
Globally move to matching parentheses Ctrl + Shift + P
Go global to the previous editing location Ctrl + Q
Go to the previous Member Ctrl + Shift + ← in the Java editor.
Go to the next member in the Java editor Ctrl + Shift + ←
Text Editor to Ctrl + L


Search
Shortcut for scope Function
Globally displayed in the file Ctrl + Shift + U
Global Search dialog box Ctrl + H
Declare Ctrl + G in the global Workspace
Reference Ctrl + Shift + G in the global Workspace


Text editing
Shortcut for scope Function
Text Editor rewrite switch Insert
Ctrl + ← on the text editor
Ctrl + ←


File
Shortcut for scope Function
Save Ctrl + X globally
Ctrl + S
Print Ctrl + P globally
Globally Disable Ctrl + F4
Globally save Ctrl + Shift + S
Globally Disable Ctrl + Shift + F4
Global attribute Alt + Enter
Globally create Ctrl + N


Project
Shortcut for scope Function
Global build Ctrl + B


Source code
Shortcut for scope Function
Java editor format Ctrl + Shift + F
Java editor uncomment Ctrl + \
Java editor comment Ctrl +/
Add and import Ctrl + Shift + M to the Java Editor
Java editor organization import Ctrl + Shift + O
The Java editor uses try/catch blocks to enclose unset ones, which is too common. Therefore, we recommend that you set them here.
You can also use Ctrl + 1 for automatic correction.


Run
Shortcut for scope Function
F7 is returned in one global step.
Skip F6 in one global step
Global One-Step Jump to F5
Global One-Step Jump-in and select Ctrl + F5
Global debugging last started F11
Continue F8 globally
Shift + F5 in one step using filters globally
Globally Add/remove breakpoints Ctrl + Shift + B
Global display Ctrl + D
Global run last started Ctrl + F11
Run Ctrl + R globally
Execute Ctrl + U globally


Reconstruction
Shortcut for scope Function
Global undo reconstruction Alt + Shift + Z
Global extraction method Alt + Shift + M
Global extraction of local variables Alt + Shift + L
Global inline Alt + Shift + I
Move Alt + Shift + V globally
Globally rename Alt + Shift + R
Global redo Alt + Shift + Y


Hotkey:

Template: Alt +/modification: window-> preference settings-> workbench-> buttons-> edit-> content assistance. Personal habits:

Shift + SPACE (blank ). Simple Description: When you edit the program code, you can press the sysout + Template startup key to automatically display it:

System. out. println ();. Set the Template format: WINDOW> preference Settings> Java> editor> Template. Automatic Program code

Layout: Ctrl + Shift + F modify: window-> Settings-> workbench-> buttons-> program code-> Format. Personal habits: Alt + Z. From

Dynamic typographical settings: WINDOW> preference Settings> Java> program code format creation program. Style page-> insert a tab (instead of a Space key)

This option is deselected, and the number of spaces below is 4. In this way, Space 4 is used for automatic orchestration. FAST Program Execution: Ctrl +

F11 habits: ALT + X Change: window-> preference settings-> workbench-> press the button-> execute-> Start the previous job. Simple Description

: During the first execution, it will ask you about the execution mode. After setting it, it will be executed quickly by pressing the hot key.
<ALT + Z (finished layout), ATL + X (executed)> .. I think it is very good ^ ___ ^ categories required for automatic import: Ctrl + Shift + O easy description:

Suppose we do not Import any category, when we enter in the program:

BufferedReader buf = new BufferedReader (new InputStreamReader (System. in ));

At this time, Eclipse will warn that there is no Import category. At this time, we only need to press Ctrl + Shift + O, and it will automatically help us Import the category.

View the original code of the category: Ctrl + left mouse click Simple Description: You can see the original code of the category you are using. Select text

Note: Ctrl +/: debugging is very convenient. Modify: WINDOW> Settings> workbench> buttons> program code> batch

Watching scene switch: Ctrl + F8 personal habits: Alt + S. Modify: WINDOW> Settings> workbench> buttons> WINDOW> next view

. Simple Description: It is convenient for us to quickly switch between editing, debugging, and other visual scenes.

TIPS: a set of Eclipse can be switched at the same time, English, traditional, and simplified display:

1. First, install the Chinese culture package.

2. Add a parameter after the shortcut of the desktop, English->-nl "zh_US" Traditional->-nl "zh_TW" simplified->-nl "zh_CN ".
(Other languages and so on) I added the parameter-n1 "zh_US" to the Eclipse shortcut on my desktop after I learned Chinese in 2.1.2 ".
The "C: \ Program Files \ eclipse \ eclipse.exe"-n "zh_US" interface changes back to the English language. Using Eclipse

When editing a document, you do not have to re-orchestrate the program code: copy the entire program code in the Eclipse program editing area (Ctrl + C), directly

Paste (Ctrl + V)
On Word or WordPad, you will find the program code format in Word, which is exactly the same as that set in Eclipse, including fonts and troughs.

Keyword color. I have tried JBuilder, GEL, NetBeans... When you use copy and paste, only the same format, fonts, colors

And so on.

Eclipse-Java editor best settings: Editor font settings: workbench-> font-> Java editor text font.
(Courier New-regular 10 is recommended) Editor settings: WINDOW> preference Settings> Java> editor appearance: Display row number

. Select square brackets that emphasize symmetric display, emphasize current line display, and display print margin, Set Tab width to 4, and set printing distance to 80.

. Program code assistance: Use presets. Syntax: You can set the display color of keywords, strings, and so on. Note: use the default settings. Input

: All fields are checked. Floating Description: by default. Tutorial: select the default settings. The effect of automatic typographical layout is best suited to Java

Design Convention settings: Automatic typographical settings: window-> preference settings-> Java-> program code production format. Line feed: all are not checked. Minute

Row: the maximum length of a row is 80. Style: only insert a blank check box after forced transformation. Number of inner spaces: Set to 4.

1. Control-Shift-T: Open type ). If you do not intend to sharpen the work, or forget to use the source

Tree.

2. Control-Shift-R: Open resources (not just to find Java files ). TIPS: Use the yellow bidirectional view of Navigator

The arrow button associates your editing window with the navigator. This will display the opened file in the hierarchy of the navigator.

Organization information. If this affects the speed, turn it off.

3. F3: Open declaration ). Alternatively, use the Declaration Tab (in Java view mode, select

Windows-> Show View-> Declaration ). When you select a method in the Code and press this button, it will

Methods are displayed in the statement box.

4. Alt-left arrow: Move back from the Navigation History. Just like the back button of the Web browser,

It is particularly useful after jump using F3. (Used to return the original compilation location)

5. Alt-right arrow: forward in the navigation history.

6. Control-Q: Return to the Last edited place. This shortcut key is also used when you jump to the code. Especially when you drill

Deep, forget what you did first.

7. Control-Shift-G: Search for reference in workspace ). This is the premise of refactoring. For the method, this hot key

The opposite of F3. It allows you to locate all callers of a method in the method stack. One function related to this is to enable

Occurrence marking ). Choose Windows> Preferences> Java> Editor> Mark

Occurrences, select the option. When you click an element, all the elements in the Code are highlighted.

. I personally only use Mark Local Variables ). Note: too many highlights will slow down Eclipse

.

8. Control-Shift-F: Re-format the code according to the code style settings. Our team has a unified code format. We put it in

On our wiki. To do this, open Eclipse and select Window? Preferences? Java? Code Style, and then set

Code Formatter, Code Style, and Organize Imports. Use the Export function to generate a configuration file. Let's take this

Put some configuration files on the wiki, and then everyone in the team will import them to their own Eclipse.

9. Control-O: quick outline ). With this shortcut key, you can quickly jump to a method or attribute, only

Enter the first few letters of the name.

10. Control-/: Comments or uncomments a line. The same applies to multiple rows.

11. Control-Alt-down arrow: copy one or more highlighted rows.

12. Alt-down arrow: move one or more rows down. Alt-up arrow moves up.

Other hotkeys are available in the menu. You can press Control-Shift-L (from version 3.1) to view the list of all shortcut keys.

Press Control-Shift-L twice to display the hotkey dialog box (Keys Preferences diences). You can set it here.

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.