Eclipse shortcut keys

Source: Internet
Author: User

1, Java Smart tips

(1). Open Eclipse and select "Window-preferences" to open.

(2). Select "Java-editor-content Assist" on the Directory tree and "Auto-activation" on the right to find the "Auto Activation triggers for Java" option. The default triggering code hint is "." This symbol.

(3). In the "Auto Activation triggers for Java" option, set the "." Change:. abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz

2. Smart hints FOR XML

(1). Open Eclipse and select "Window-preferences" to open.

(2). Select "Xml-editor-content Assist" on the Directory tree and "Auto-activation" on the right to find the "Prompt when these characters is inserted" option.

(3). In the "Prompt when these characters is inserted" option, the "<=:," Change: <=:. ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVW (,

in Eclipse, write a class name that does not import the corresponding package (the class name is already fully written, such as LayoutManager), You can import the appropriate package with ctrl+shift+m/ctrl+shift+o/ctrl+1.

What are the shortcut keys for an auto-complete corresponding reference after eclipse creates an object? (Automatically complements the shortcut to the left of the equals sign)

Use the mouse to select this line, and then press the key combination shift+alt+l, click OK in the Pop-up dialog, or you can modify the variable name, actually using the "extract local variables" in the refactoring

The Eclipse Auto-Generate Get/set method Shift+alt+s pops up a dialog box to select Generate Getters and Setters ...

MyEclipse shortcut key 1 (CTRL)  -------------------------------------  ctrl+1 quick fix   ctrl+d: Delete Current line   CTRL+Q   Navigate to last edited place   ctrl+l  positioned in a row    ctrl+o  quick Display outline  ctrl+t  quickly displays the inheritance structure of the current class   ctrl+w  Close the current editer  ctrl+k  quickly navigate to the next   ctrl+e quickly display the current Editer drop-down list   ctrl+j  forward incremental lookup (press CTRL + After J, each letter editor you enter provides a quick match to navigate to a word, if not, the display in Stutes line is not found,      Ctrl + Z return to the state before the change   ctrl+y Contrary to the above action   ctrl+/  comment on the current line, then uncomment   ctrl+d Delete the current line.   CTRL+Q jumps to the last edit place   ctrl+m the size of the toggle window   CTRL+I Formats the active element in format active Elements.   CTRL+F6 Switch to the next editor  ctrl+f7 switch to the next perspective  ctrl+f8 switch to the next view -------------------------- ----------------  MyEclipse shortcut keys 2 (ctrl+shift)  ------------------------------------------  CTRL + SHIFT+E Displays the manager that manages all of the currently open view (you can choose to close, activate, and so on)   ctrl+shift+/automatic Comment code   ctrl+shift+\ automatically cancels the code that has been commented   Ctrl+shift +o Auto-Boot class package   CTRL+SHIFT+J Reverse incremental lookup (same as above, just look backwards)   CTRL+SHIFT+F4 Close all open editer  ctrl+shift+x  the currently selected text to lowercase   ctrl+shift+y  all the currently selected text to lowercase   ctrl+shift+f  formatting The current code   CTRL+SHIFT+M (placing the cursor on the class name of the package to be imported) is to add an import statement   Ctrl+shift+p to the match for (for example, {}) (When you position the back from the front, the cursor is in the match, back to front, or vice versa)   ctrl+shift+f format file.   Ctrl+shift+o function is that the missing import statement is added and the extra import statement is deleted.   Ctrl+shift+s Save all unsaved files.   ctrl+shift+/is this/*~*/comment in the Code window, which is <!--~--> in the JSP file window.   Shift+ctrl+enter insert a blank line in the current row (principle above)  -----------------------------------------  MyEclipse shortcut 3 (ALT)  -----------------------------------------  alt+/Code Helper to complete some code insertion, automatically display the prompt information   alt+↓  The current line and the following line of interactive position ( Particularly useful, can be omitted first cut, then pasted)   alt+↑  the current line and the previous row interaction position (IBID.)   alt+←  previous edited page   alt+→  the next edited page ( Of course, for the above article)   Alt+enter displays the properties of the currently selected resource (project, or file or file)  
MyEclipse shortcut key 4 (Alt+ctrl)
Alt+ctrl+↓ Copy the current row to the next row (copy increase) alt+ctrl+↑ Copy the current row to the previous row (copy incremented)-------------------------------------------MyEclipse shortcut 5 (Alt +shift)-------------------------------------------alt+shift+r Rename the Alt+shift+m extraction method Alt+shift+c Modify the function structure (more practical, there are N function calls This method, fix it once) alt+shift+l extract local variables alt+shift+f change the locals variable in class to field variable alt+shift+i merge variable alt+shift+v move function and variable alt+shift+z Refactoring regret Medicine (Undo) shift+enter inserts a blank line on the next line of the current line (at which point the mouse can be at any position in the current row, not necessarily the last) Alt+shift+o (or click the Toggle Mark Occurrences button in the toolbar)  When you click on a marker to make this marker yellow on the other side of the page, and a white box appears on the right border of the window, clicking this block jumps to the marker. 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 beginning of the)
--------------------------------------------MyEclipse shortcut keys (6)--------------------------------------------  F2 when the mouse is placed on a marker, when the ToolTip is pressed F2, the ToolTip will also be displayed as the show ToolTip Description when the mouse is moved.  F3 jumps to the place of declaration or definition.  F5 One-step debugging into the inside of the function.  F6 single-Step debugging does not enter the function inside, if installed PowerWord 2006 to the "Take the word switch" shortcut keys to change to other.  The F7 is returned from inside the function to the call point. F8 continues to the next breakpoint.

Eclipse shortcut keys

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.