MyEclipse shortcut keys Daquan (recommended collection)

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_37131111/article/details/84590317

Save Ctrl + s (know for sure)
commented code Ctrl + /
Uncomment Ctrl + (Eclipse3 have all merged into Ctrl + / a)
code assist Alt + /
Quick Fix Ctrl + 1
code formatting Ctrl + Shift + f
to clean up imported Ctrl + Shift + o
switch window Ctrl + f6 <ctrl + may instead conveniently Tab>
ctrl + Shift + M introduced unreferenced packets
ctrl + W Close single window
F3 jump to the class declaration of variables
F11 for the last program
Ctrl + F11 last debugger program
alt + back next edit point
ctrl + shift + T to find engineering class

The most classic shortcuts

Ctrl + 1 Quick Fix (the most classic shortcut keys, needless to say)

Ctrl + D: Deletes the current line

Ctrl + Alt + ↓ Copy the current line to the next line (Copy increase)

Ctrl + Alt + ↑ Copy the current line to the previous line (Copy increase)

Alt + ↓ position of the current line and the following line of interaction (particularly useful, can be omitted to cut, and then pasted)

Alt + ↑ the current line and the top line interaction position (ibid.)

Alt + ← a former editor of the page

Alt + → next edit page (of course, for the one above it)

Alt + Enter to display the currently selected resource (engineering, or file or files) properties

Shift + Enter current row into the next line blank line (in this case a mouse can be any position of the current row, not necessarily last)

Shift + Ctrl + Enter insert a blank line in the current line (principle above article)

Ctrl + Q Last edited to locate the place

Ctrl + L positioned in a row (for more than 100 persons have program gospel)

Ctrl + M to maximize the current Edit or View (press and vice versa)

Ctrl + / comments on the current line, press the Cancel comment

Ctrl + O to quickly display OutLine

Ctrl + T to quickly display the current class inheritance structure

Ctrl + W closes the current Editer

Ctrl + K Referring to quickly locate selected next Word

Ctrl + E to quickly display the drop-down list of current Editer (if the current page does not display shown in bold)

Ctrl + / (keypad) all the current class code folding

Ctrl + × (keypad) Expand All codes in the current class

Ctrl + Space Code assistant to complete some of the code inserted (but generally there is a conflict and input methods, you can modify the hot key input method can also be used temporarily

Alt + / instead)

Ctrl + Shift + E Display Manager View all currently open manager (option to turn off, to activate other operations)

After the increment look forward Ctrl + J (Press Ctrl + J, you enter each letter editor provides fast matching to locate a word, if not

There is no display in stutes line found when a search word, particularly practical, this function will have two years ago Idea)

Ctrl + Shift + J reverse incremental find (and on the same strip, just forward from the back check)

Ctrl + Shift + F4 to close all open Editer

Ctrl + Shift + X to the currently selected text all lowercase

Ctrl + Shift + Y to the currently selected text all lowercase

Ctrl + Shift + F to format the current code

Ctrl + Shift + P matcher for targeting of (for example, {}) (when positioned behind the front from the cursor to the character matching inside, back to the front, the anti-

Of)

The following shortcuts are common remodeling inside, I would like to own and commonly tidy (Note: general reconstruction shortcuts are Alt + Shift

At the beginning of the)

Alt + Shift + R to rename (my own favorite with a, especially variables and class Rename, than the manual method can save a lot of labor

)

Alt + Shift + M extraction method (which is one of the most commonly used inside reconstruction method, especially useful for a lot of clay in the code)

Alt + Shift + C modified structural function (more practical, with N function calls this method once get modified)

Alt + Shift + L extracting local variables (direct some magic number and character string extracting into a variable, especially when multiple calls)

Alt + Shift + F Class of the field variable become local variables (more useful features)

Alt + Shift + I merge variables (probably say something wrong Inline)

Alt + Shift + V moves functions and variables (less commonly)

Alt + Shift + Z reconstruction of regret (Undo)

Alt + Left arrow, right arrow to the edit window switching label
Alt + down arrow, to automatically select a mouse row, and move up and down
Ctrl + f6 can pop-up menu, listed above can switch the edit window, so that the mouse can not

Switching
Ctrl + f7 can switch between views, such as edit view, output view, project view
Ctrl + f8 observation can switch between different views, that is, between the view java, debug view, etc.

Switching
Ctrl + m can be maximized to switch between the current window and restore the current window
Ctrl + e popup input window, enter the code that you want to edit window, and Ctrl + f6 work

Can be the same, but a mode is selected, a mode is entered, switching window
Ctrl + T content can be displayed directly class diagram of the cursor can be directly input, and the input skip

Receiving portion
holding down the Ctrl key, and then the mouse pointer variable names, method names, class names in the source code quickly jump
Ctrl + F11 rapid execution program
Ctrl + Shift + F automatic typesetting program code
Ctrl + Shift + O was added automatically by reference. Note: We do not assume any category Import, when we are in the process

In order to enter: ResourceAttirbute ra = new ResourceAttribute (); Eclipse will prompt that there is no reference category, then

We just press Ctrl + Shift + O, it will automatically help us Import this category. Very convenient
Ctrl + / up to the selected block Note: very convenient when Debug.
Alt + / is that we should assist the most commonly used code
Ctrl + h search, open the Search dialog box
Ctrl + Shift + Space parameter prompts, at this time if the parameter is located in the method body, there will be prompt method, the current cursor location

Parameters position will be shown in bold

Scope function shortcut key
global find and replace Ctrl + F
text editor to find a Ctrl + Shift + K
text editor to find next Ctrl + K
global Undo Ctrl + Z
Global Copy Ctrl + C
a select Alt + Shift global recovery on + ↓
global cut Ctrl + X
global fast correction Ctrl1 + 1
global content assist Alt + /
global select all Ctrl + A
global delete delete
global context information Alt +?
Alt + the Shift +?
Ctrl + the Shift + Space
Java editor to display a tooltip description F2
Java editor to select the enclosing element Alt + the Shift + ↑
Java editor element in the choice of Alt + Shift + ←
under Java Editor select an element Alt + Shift + →
Text editor incremental find Ctrl + J
text editor incremental backward lookup Ctrl + Shift + J
global Ctrl + V paste
global redo Ctrl + Y

See
scope Function Shortcuts
The global gain Ctrl + =
global reduction Ctrl ±

Window
scope shortcut function keys
activated globally F12 editor
global switch editor Ctrl + Shift + W
an editor Ctrl + Shift + F6 globally
a global view on the Ctrl + Shift + F7
a global perspective view of the Ctrl + Shift + F8
globally the next editor Ctrl + F6
globally a view Ctrl + F7
globally Ctrl + F8 perspective view of a
text editor to display the context menu Ctrl + W scale
global menu Ctrl + F10 view showing
the overall display system menu Alt ±

Navigation
Scope Function Shortcuts
Java Editor Ctrl + F3 to open the structure of
the global open type Ctrl + Shift + T
global open type hierarchy F4
global open declaration F3
global external javadoc Shift + F2 to open the
global open resource Ctrl + Shift + R
global recession history recording Alt + ←
global forward history Alt + →
a Ctrl globally +,
globally a Ctrl +.
the Java editor displays an outline Ctrl + O
global open type Ctrl + Shift + H in the hierarchy
global go matching brace Ctrl + Shift + P
go on a global edit position Q + the Ctrl
Java editor go to a member of the Ctrl + Shift + ↑
the Java editor go to a member of Ctrl + Shift + ↓
text editor, go to row Ctrl + L

Search
scope function shortcut keys
globally appear in the file Ctrl + Shift + U
Global open the search dialog Ctrl + H
declare global Ctrl + G workspace
references Ctrl + Shift + G global workspace

Text editing
scope function shortcut
text editor to rewrite switch Insert
a text editor rolling Ctrl + ↑
in text editor rolling Ctrl + ↓

File
scope function shortcut keys
globally to save the X-+ Ctrl
Ctrl + S
global print Ctrl + P
Global Ctrl + F4 to close
the global Save All Ctrl + Shift + S
global all closed Ctrl + Shift + F4
Global Properties Alt + Enter
Global New Ctrl + N

Project
Scope function shortcuts
Global Build All Ctrl + B

Source
Scope Function Shortcuts
Java Editor format Ctrl + the Shift + F
Java editor uncommented Ctrl + \
Java editor comments Ctrl + /
Java editor to add import Ctrl + the Shift + M
Java Editor organize imports Ctrl + Shift + O
Java editor using try / catch block to enclose not set too common, so listed here, set up their own proposals.
You can also use Ctrl + 1 automatic correction.

Run
scope function shortcut key
global Step Return F7
global Step Over F6
Global Step into F5
global step into select Ctrl + F5
global debugger last start F11
globally continue F8
Global filter using single-step Shift + F5
global add / remove breakpoints Ctrl + Shift + B
global display Ctrl + D
global run last startup Ctrl + F11
global row Ctrl + R to run
global execution Ctrl + U

Reconstruction
scope function shortcut
global revocation reconstructed Alt + Shift + Z
global extraction method Alt + Shift + M
global extracted local variables Alt + Shift + L
global inlining Alt + Shift + I
global motion Alt + Shift + V
overall weight Alt + Shift + R named
global redo Alt + Shift + Y

Hotkey articles:

Template: Alt + / Modify at: Window -> Preferences -> Workbench -> key -> Edit -> auxiliary content. personal habit:

Shift + SPACE (blank). Simple explanation: When editing program code, hit sysout + Template start button, it will automatically appear:

System.out.println ();. Template set of formats: Window -> Preferences -> Java-> Editor -> Templates. Program code automatically

Typesetting: Ctrl + Shift + F modified at: Window -> Preferences -> Workbench -> key -> program code -> format. Personal habits: Alt + Z. from

Dynamic layout setting: Window -> Preferences -> Java-> code format the program production process. Style page -> to insert tab (not the spacebar) within

Shrink, uncheck this option, the number of spaces to fill below 4, so that when the automatic layout will be a space for indent 4. Rapid implementation of the program: Ctrl +

F11 personal habits: ALT + X to modify at: Window -> Preferences -> Workbench -> Key -> Execution -> to start the job once before starting. Simple instructions

: The first execution, it will ask you execution mode, Set up, after just press the hot key, it will fast execution.
<ALT + Z (typesetting End), ATL + X (execute)> ... I feel very smoothly ___ category automatically import needed: Ctrl + Shift + O easy instructions:

Import Assuming we do not have any class, when we scored in the program:

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

Eclipse will this time warning that there is no import category, then we just press Ctrl + Shift + O, it will automatically help us Import category.

Use categories to view source code: Ctrl + left mouse button click simple explanation: You can see the source code used categories. The selected text

Annotations up: Ctrl + / simple explanation: it is convenient when Debug. Modifying at: Window -> Preferences -> Workbench -> key -> program code -> Batch

Watching the scene switching: Ctrl + F8 Personal habits: Alt + S. Modifying at: Window -> Preferences -> Workbench -> key -> Window -> next scene

. Easy Note: You can help us to quickly switch editing, debugging and other visual.

Part cheats: a simultaneous switching Eclipse, English, traditional and simplified show:

1. First you have finished installing the culture packages.

2. On the back of a desktop shortcut to add parameters to, English -> -nl "zh_US" Traditional -> -nl "zh_TW" Simplified -> -nl "zh_CN".
(Other languages and so on) 2.1.2 I like culture, I joined the parameters -n1 "zh_US" In my desktop shortcut of Eclipse.
"C: \ Program Files \ eclipse \ eclipse.exe" -n "zh_US" the interface will change back to English language chatter. Use Eclipse, in Word

It may not be necessary to rearrange the program code when editing instruments: the program code Eclipse editing area of ​​the entire copy down (Ctrl + C), direct

Paste (Ctrl + V) to
the Word or WordPad, you will find the program code in Word format, and exactly the same as the set of Eclipse, including fonts, indent

, Keyword color. I have tried JBuilder, GEL, NetBeans ... use the copy and paste, only indented formats, fonts, colors

And so it will not change.

Eclipse-Java Editor optimum settings: Editor font settings: Table -> Font -> Java editor text font.
(Recommended setting Courier New -regular 10) related settings editor: Window -> Preferences -> Java-> Editor Appearance: a display line number

Emphasis display symmetrical square brackets, highlighting the current line, displays a print margin, it is checked, Tab width set 4, the print field is set stitch 80

. Program code assist: mining can be preset. Syntax: Keywords can be set, the display color of the string or the like. Note: mining can be preset. Entry

: All fields are checked. Floating Description: mining can be preset. Navigation: mining can be preset. Discharged from the automatic typesetting effect, in line with most Java

Design practice setting: automatic layout setting: Window -> Preferences -> Java-> program code production format. Wrap: All is not checked. Minute

Line: Line length limit set: 80. Style: only after the mandatory transition insert a blank check. The number of spaces in the shrink: Set 4.

  1. Control-Shift-T: Open Type (Open type). If you did not mean to make hay, or forgotten through the source tree (source

tree) to open the way to it.

  1. Control-Shift-R: Open resource (not just to look for Java files). Tip: Use the Navigator view of the yellow two-way

The arrow buttons let you edit window and navigation associated. This will let you open the corresponding file is displayed in the hierarchy navigator, thus

To organize information. If this affects the speed, just turn it off.

  1. F3: Open declare (Open declaration). Alternatively, using the Declaration Tab (view in the Java mode, select

Windows -> Show View -> Declaration). When you select a method of code, then press this button, it will whole

A method shown in a statement the box.

  1. Alt-left arrow: Back in navigation history (Navigation History) in. Like the Web browser back button,

After use F3 to jump, it is particularly useful. (To return to the original place compiled)

  1. Alt-right arrow: forward navigation history.

  2. Control-Q: Back to the last place in order to edit. This shortcut is when you jump in the code used. Especially when you drill too

Deep, forget what to do when you initially.

  1. Control-Shift-G: Citations in the workspace (reference). This is a prerequisite for reconstruction. For the method, this hotkey

And F3 is just the opposite effect. It allows you to stack method, up to find all callers of a method. A related feature is turned on

"Tagging" (occurrence marking). Select Windows-> Preferences-> Java-> Editor-> Mark

Occurrences, check the option. Then, when you click on an element of the code in the presence of all the elements in place will be significantly highlighted

Shows. I personally only use the "mark local variables" (Mark Local Variables). Note: Too many highlight will slow down Eclipse

  1. Control-Shift-F: The coding style set reformatting code. Our team have a unified code format, we put it in

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

Code Formatter, Code Style and Organize Imports. The use of export (Export) function to generate a configuration file. We put

These profiles on the wiki, then the team everyone into their Eclipse.

  1. Control-O: Quick summary (quick outline). With this shortcut, you can quickly jump to a method or property, only

You need to enter the first few letters of the name.

  1. Control- /: on the one-line comment or uncommented. For multi-line also applies.

  2. Control-Alt-down arrow: Copy highlighted line or lines.

  3. Alt-down arrow: one or more rows down. Alt-up arrow will move up.

There are other hot key in the menu. You can press Control-Shift-L (3.1 version from the start), see a list of all the shortcuts.

Press Control-Shift-L twice, hotkey dialog box appears (Keys Preferences dialog), you can set up their own here

Guess you like

Origin blog.csdn.net/qq_37131111/article/details/84590317