Disk Ctrl+s (sure knows) Comment code ctrl+/uncomment ctrl+\ (Eclipse3 has been merged into ctrl+/) code assist alt+/Quick Fix ctrl+1 code formatting ctrl+shift+f grooming Import Ctrl+shift+o Toggle Window Ctrl+f6 < can be changed to Ctrl+tab convenient > ctrl+shift+m import unreferenced Package ctrl+w close a single Window F3 jump to class, variable declaration F11 Run last program Ctrl + F11 Debug Last program Alt + back to Next Edit Points ctrl+shift+t Find classes in a project
The most classic shortcut keys
Ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say more)
Ctrl+d: Delete When moving forward
Ctrl+alt+↓ Copy the current row to the next row (replication incremented)
Ctrl+alt+↑ Copy the current line to the previous row (replication incremented)
Alt+↓ the current line and the next line of interaction (especially useful, can be omitted first cut, then pasted)
Alt+↑ the current line and the upper row interaction position (IBID.)
alt+← the previous edited page
alt+→ next Edit page (of course, for the above article)
Alt+enter displays the properties of the currently selected resource (project, or file or file)
Shift+enter inserts a blank row on the next line of the current row (at which point the mouse can be at any position in the current row, not necessarily the last)
Shift+ctrl+enter Insert blank line in current line (principle above)
Ctrl+q positioning to the last edited place
Ctrl+l positioning in a row (for people with programs over 100 have the gospel)
Ctrl+m maximize the current edit or view (and vice versa)
ctrl+/comment on the current line, and then uncomment it
Ctrl+o Quick Display OutLine
Ctrl+t quickly displays the inheritance structure of the current class
Ctrl+w Closing the current editer
Ctrl+k the selected word quickly navigates to the next
Ctrl+e quick display of the current Editer drop-down list (in bold if the current page does not appear)
ctrl+/(numpad) collapses all code in the current class
Ctrl+x (keypad) expands all code in the current class
Ctrl+space Code Helper to complete some code insertion (but general and input method conflict, you can modify the input method hotkey, you can also take up
alt+/to replace)
Ctrl+shift+e Display manager that manages all of the currently open view (you can choose to close, activate, and so on)
Ctrl+j forward Incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to navigate to a word, if not
There, then in the Stutes line display did not find, check a word, especially practical, this function idea two years ago.
CTRL+SHIFT+J Reverse incremental lookup (same as above, except forward)
Ctrl+shift+f4 Close all open editer
Ctrl+shift+x turns the currently selected text to lowercase
Ctrl+shift+y turns the currently selected text to lowercase
Ctrl+shift+f formatting of the current code
Ctrl+shift+p is positioned to the match (for example {}) (after the cursor is positioned behind the match and back to the front, the counter
Of
The following shortcut keys are commonly used in refactoring, I like and commonly used to tidy up (note: General refactoring of the shortcut keys are Alt+shift
The beginning of the)
Alt+shift+r rename (it's my favorite one, especially the variable and class rename, which can save a lot of labor than the manual method.)
)
Alt+shift+m Extraction Method (This is one of the most common methods of refactoring, especially useful for a whole bunch of mud codes)
Alt+shift+c Modify the function structure (more practical, there are n functions called this method, modified once done)
Alt+shift+l extract Local variables (you can directly extract some magical numbers and strings into a variable, especially when multiple calls are made)
Alt+shift+f change the local variable in class to a field variable (more useful function)
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 reconstruction of Regret medicine (Undo)
ALT + LEFT ARROW, RIGHT arrow to toggle tab in edit window Alt + up and down arrows to automatically select the row of the mouse and move it up or down ctrl+f6 can pop-up menu, listed above can Switch the edit window so that you don't have to use the mouse to
Toggle Ctrl+f7 can switch between views, such as Edit view, output view, drawing view Ctrl+f8 can be toggled in different viewing views, in Java view Diagram, debug view, etc.
Toggle Ctrl+m can toggle between maximizing the current window and restoring the current window ctrl+e popup input window, you can enter the code window you want to edit, and Ctrl The work of +f6
Can be the same, but one is the choice of the way, one is the input mode, the switch window ctrl+t can directly display the cursor content of the class diagram, you can directly input, and jump into the input
Hold the CTRL key, and then point to the variable name, the method name, the class name in the source code quick Jump Ctrl + F11 Quick Execute Program ctrl+shift+f program code from Dynamic typesetting ctrl+shift+o automatically added references. Description: Suppose we do not import any category when we are in the process of
Preface: Resourceattirbute ra =new resourceattribute (); Eclipse will prompt that there are no reference categories,
As long as we press CTRL+SHIFT+O, it will automatically help us import this category. It is very convenient to ctrl+/the selected block: It is convenient to debug. Alt +/Is the most common code that everyone should use to assist Ctrl+h search, open the Search dialog box Ctrl+shift+space Parameter hint, if this is in the method body, the method's parameter prompt appears, the current cursor is located
Position parameters are shown in bold
Scope function Shortcut global find and replace ctrl+f text editor Find previous ctrl+shift+k text editor find next ctrl+k global Undo Ctrl + Z global Restore previous selection alt+shift+↓ global Clipping ctrl+x Global quick fix ctrl1+1 Global content assist alt+/global All selected CTRL + A global DELETE delete global context information ALT +? Alt+shift+? Ctrl+shift+space Java Editor Display tooltip description F2 Java Editor Select encapsulate element Alt+shift+↑java Editor Select previous element Alt+shift+←java Editor Select next element alt+shift+→ text Editor Incremental Lookup ctrl+j Text Editor Incremental reverse lookup ctrl+shift+j Global Paste Ctrl + V global Redo Ctrl+y
View scope function Shortcuts Global Zoom ctrl+= Global Zoom Out ctrl+-
Window scope function Shortcut Global Activation Editor F12 Global Toggle Editor Ctrl+shift+w Global on one editor Ctrl+shift+f6 global View Ctrl+shift+f7 Global previous perspective Ctrl+shift+f8 Global Next editor Ctrl+f6 Global next View Ctrl+f7 Global Next Perspective ctrl+f8 Text Editor display ruler context menu Ctrl+w Global Display View menu CTRL+F10 Global Display System menu alt+-
Navigation scope features shortcut key Java Editor Open structure ctrl+f3 global open type ctrl+shift+t global open type hierarchy F4 global open Declaration F3 Global Open External Javadoc shift+f2 Global Open Resource Ctrl+shi Ft+r Global fallback History alt+← global forward history alt+→ globally on a CTRL +, global next Ctrl +. The Java Editor displays outline Ctrl+o Global in the hierarchy open type Ctrl+shift+h global go to matching parentheses ctrl+shift+p global go to previous edit location Ctrl+q Java Editor go to previous member Ctrl+shift+↑ja VA editor go to next member ctrl+shift+↓ text editor go to line ctrl+l
The search scopes feature shortcut keys appear globally in the file Ctrl+shift+u Global Open Search dialog box ctrl+h Global Workspace declarations ctrl+g references in the global workspace Ctrl+shift+g
Text editing scope feature shortcut key text Editor overwrite toggle Insert Text Editor Roll line ctrl+↑ text Editor scroll line ctrl+↓
File scope function shortcut key global save ctrl+x ctrl+s Global print ctrl+p global shutdown CTRL+F4 Global all save Ctrl+shift+s Global close CTRL+SHIFT+F4 Global Properties Alt+enter Global New CTRL + N
Project scope feature shortcut key global all build Ctrl+b
Source code scope function shortcut key Java Editor format ctrl+shift+f Java editor Uncomment ctrl+\ Java editor Comment ctrl+/Java Editor add import ctrl+shift+m Java Editor organize import Ctrl + The Shift+o Java Editor uses try/catch blocks to surround the settings, which are too common, so it is recommended to set them up here. You can also use ctrl+1 to automatically fix it.
Run scope function Shortcut Global step back F7 Global single-Step bypass F6 Global single-Step jump F5 Global single-step-forward selection CTRL+F5 Global debug last started F11 global continue F8 Global use filter Stepping SHIFT+F5 Global Add/Remove breakpoint C TRL+SHIFT+B Global Display Ctrl+d global run last start CTRL+F11 global run to row ctrl+r global execution Ctrl+u
Refactoring scope function shortcut key global undo Refactoring Alt+shift+z Global Extraction Method Alt+shift+m Global Pull local variable alt+shift+l global inline alt+shift+i Global move alt+shift+v Global rename Alt +shift+r Global Redo Alt+shift+y
Hotkey Chapter:
Template:alt +/modification: Windows--preferences----edit----assistant Personal habits:
Shift+space (blank). Simple description: When editing the program code, hit Sysout +template start key, it will appear automatically:
System.out.println ();. Format Template: window, preferences settings->java-> Editor, templates. Program code automatically
Layout: ctrl+shift+f Modification: Window, preferences, Workbench, key, and so on. Personal habits: alt+z. Self -
Dynamic Typesetting Settings: window, preferences set->java-> program code format production program. Style page, insert tab (not space bar)
This option is unchecked, the number of spaces below is 4, so the auto-orchestration will be indented with a space of 4. Quick Execute Program: Ctrl +
F11 personal habits: alt+x Modification: Windows--preferences------------------------start the previous job. Simple description
: When executed for the first time, it will ask you to execute the mode, set up, and then just press the hotkey, it will be executed quickly. <alt+z (finished typesetting), atl+x (execution); I feel so handy. ^___^ automatically import the required categories: Ctrl+shift+o Simple description:
Suppose we do not import any category when we enter in the program:
BufferedReader buf =new BufferedReader (New InputStreamReader (system.in));
At this point, Eclipse warns that there is no import category, and as soon as we press Ctrl+shift+o, it will automatically help us import the category.
To view the original code using the Category: Ctrl + left mouse button Click Simple description: You can see the original code of the category you use. The selected text
Annotations: ctrl+/Simple explanation: debugging is very convenient. Modification: Windows, Preferences, workbench----Program code--Batch
Gaze switch: Ctrl+f8 personal habits: alt+s. Modification: Windows--Preferences, Workbench, buttons
。 Easy to explain: we can quickly switch between editing, debugging, and other visual scenes.
Secret: A set of eclipse can be switched at the same time, English, traditional, simplified display:
1. First install the Chinese culture pack.
2. After the shortcut to the desktop, add the parameters, English--nl "zh_us" traditional------NL "ZH_TW"-NL "ZH_CN". (Other languages and so on) like my 2.1.2 culture, I add the parameter-n1 "Zh_us" to the Eclipse shortcut on my desktop. "C:\Program Files\eclipse\eclipse.exe"-n "Zh_us" interface will be changed back to the English language chatter. With Eclipse, in Word
When editing an instrument, you don't have to rearrange the program code: Copy the program code from the Eclipse program editor (CTRL + C) and directly
Paste (Ctrl + V) to Word or WordPad, you will find that the program code format in Word is exactly the same as Eclipse set, including font, indent
, keyword color. I've tried JBuilder, GEL, NetBeans ... When using a copy paste, only the indentation format, font, color
And so will not change. Plug-in: Plug-in installation: After the plug-in download back, after the decompression, you will find features, plugins these 2 data folders, will be copied or moved inside the eclipse features, plugins data folder, restart
Eclipse can.
Let Eclipse build the GUI's plug-in like Jbuilderx, using a drag-and-pull approach:
1.Jigloo swt/swing GUI builder:http://cloudgarden.com/jigloo/index.html Download this version: Jigloo
Plugin for Eclipse (using Java 1.4 or 1.5) can be set up with the other->gui form, file, new, to be constructed.
The GUI type.
2.Eclipse Visual Editor project:http://www.eclipse.org/vep/Click Download Page below, then click
Latest Release 0.5.0 into the download. In addition to Ve-runtime-0.5.0.zip to download, the following 2 are also: EMF Build 1.1.1: (Build page) (download Zip) GEF Build 2.1.2: (Build page) (Download Z ip
3.0 M8 version, download: EMF build I200403250631 the GEF build I20040330 ve-runtime-1.0m1 installation is successful, the UI design can begin with the File->new->visual class. After the installation is successful, the new
->java->awt and Swing chose the type of GUI to be constructed to begin the design. ve must match with the corresponding version, in order to normal use,
Otherwise, even if the installation succeeds, there is still a problem with the use. Using eclipse to develop JSP programs: Plug name: Lomboz (Download page)
http://forge.objectweb.org/project/showfiles.php?group_id=97 Please select the appropriate version of the Lomboz download
, Lomboz.212.p1.zip represents version 2.1.2, Lomboz.3m7.zip represents M7 version .... etc. Lomboz Installation and Setup teaching: Eclipse Development jsp-Teaching documents
Java to EXE: implementation: Eclipse paired with Jsmooth (free). 1. First make a jar containing manifest from eclipse. Production teaching 2. Use Jsmooth to package the jar into EXE. Jsmooth download page: http://jsmooth.sourceforge.net/index.php 3. The finished EXE file can be executed on Windows with the device JRE.
Eclipse-java Editor Best settings: Editor font settings: Work table, font->java editor text font. (Recommended setting Courier New-regular 10) Editor-related settings: Preferences->java-> Editor Appearance: Display line numbers
, emphasizing the symmetrical display of the square brackets, emphasizing the display of the current row, display the print margin, check it, tab width set 4, Print Spacing field set 80
。 Program code assistance: Mining presets can be. Syntax: You can set the display color of keywords, strings, and so on. Note: The preset can be adopted. Input
: All fields are checked. Floating Description: The preset can be adopted. Guided tour: The preset can be adopted. The result of automatic layout, the most compatible with Java
Design Practice settings: Automatic Layout settings: Window-like preferences set->java-> program code production format. Line break: All not checked. Score of
Line: The upper line length is set to: 80. Style: Insert blank check only after forced transition. Number of spaces in indent: set to 4.
1. Control-shift-t: Opens type (open type). If you are not intentionally skiving, or forget to pass the source tree (source
Tree) Open the way it is.
2. Control-shift-r: Open resources (not just for Java files). Tip: Use the yellow bidirectional Navigator View
The arrow buttons let you associate the edit window with the navigator. This will let you open the file corresponding to display in the hierarchy of the navigator, so that
to organize information. If this affects speed, turn it off.
3. F3: Open the Declaration (opening declaration). Or, using 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 put the entire
A method is shown in the Declaration box.
4. Alt-left arrow: Back in navigation history (Navigation). Just like a Web browser's Back button,
It is especially useful after jumping with F3. (Used to return to the original compiled place)
5. Alt-right Arrow: Navigate the history forward.
6. Control-q: Go back to the last place to edit. This shortcut is also used when you jump in the code. Especially if you've ever drilled.
Deep, forget what you were doing at first.
7. Control-shift-g: Search for references in Workspace (reference). This is the premise of refactoring. For the method, this hotkey's
The effect and F3 are exactly the opposite. It enables you to find all the callers of a method in the stack of methods. A function that is related to this is to turn on
The mark function (occurrence marking). Select Windows->preferences->java-> editor-> Mark
Occurrences, tick the option. At this point, when you click on an element, all of the elements in the code that exist will be highlighted
Shown I personally only use "Mark local variables" (Mark locally Variables). Note: Too many highlights slow eclipse
。
8. Control-shift-f: Reformat the code according to the Code style settings. Our team has a uniform code format and we put it in
On our wiki. To do this, we open Eclipse and choose Window? Preferences? Java? Code Style, and then set
Code Formatter,code style and organize Imports. Use the export feature to generate a configuration file. We put this
Configuration files on the wiki, and everyone in the team is imported into their eclipse.
9. Control-o: Fast Overview (Quick outline). With this shortcut, you can quickly jump to a method or property, just
You need to enter the first few letters of the name.
control-/: Comments on a line or uncomment. This is also true for multiple lines.
Control-alt-down Arrow: Copies the highlighted row or rows.
Alt-down Arrow: Moves one or more lines down. Alt-up Arrow will move up.
The other hotkeys are available in the menu. You can see a list of all the shortcut keys by pressing CONTROL-SHIFT-L (starting with version 3.1).
Press Control-shift-l two times to display the Hotkey dialog (keys Preferences dialog), where you can set your own
MyEclipse shortcut keys