Eclipse shortcut key _ 1

Source: Internet
Author: User

// Increase the startup speed "eclipse.exe-vmargs-xverify: none"

// Eclipse shortcut
CTRL + Shift + x ----- uppercase

CTRL + Shift + y ----- lower case

CTRL + M or Ctrl + press enter on the keypad ----- maximize the window/restore

CTRL + 1 ----- correct the error when an error occurs and get the prompt message.

Alt + '[----- automatically generate paired symbols

CTRL + mouse ----- jump

CTRL + O ----- Ctrl + O open a window similar to outline. When the code window is maximized, use this to jump in the attribute/method.

Double-click the left bracket. The content in the brackets is selected.

Select several lines, move the cursor to the beginning of the line, and press Ctrl + 1 ----- put the code in for, while, if, do, try

CTRL + Shift + F ----- if the selected text is selected, format the text. If no selected text is selected, format the entire document.

CTRL + space ----- prompt information. For example, if sysout is selected, system. Out. println () is output ();

CTRL +/----- single line comment | cancel comment

CTRL + Shift +/----- comment out a selected block /**/

CTRL + Shift +/----- cancel a comment Block

CTRL + Shift + O ----- automatically corrected the introduced class (add required, delete useless)

CTRL + k ----- find the next

CTRL + Shift + k ----- search back

**************************************** **************************************** ***

1) alt +/usage: prompts you to enter related functions, prompts you to enter related classes, and automatically enters Code such as ifswitch;

2) Ctrl + Shift + F code formatting;

3) categories required for automatic import: Ctrl + Shift + O Simple Description: if 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.

4) 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.

5) Visual switch: Ctrl + F8

6) "Ctrl + Shift + T" (Open Type ));

7) control-shift-T: Open type ). If you are not interested in doing this, forget to open the source tree.

8) control-shift-R: Open resources (not just to find java files ). Tip: Use the yellow two-way arrow button in the navigator view to associate your editing window with the navigator. This will display the opened files in the hierarchy of the navigator to facilitate the organization of information. If this affects the speed, turn it off.

9) F3: open declaration ). Alternatively, use the Declaration tab (in Java view mode, choose windows --> show View --> Declaration ). When you select a method in the Code and press this button, it will display the entire method in the statement box.

10) alt-left arrow: Move back from the navigation history. Just like the back button of the web browser, it is particularly useful after the F3 jump. (Used to return the original compilation location)

11) alt-right arrow: forward in the navigation history.

12) control-Q: Return to the Last edited place. This shortcut key is also used when you jump to the code. Especially when you drill too deep and forget what you did first.

13) control-shift-G: Search for reference in workspace ). This is the premise of refactoring. For methods, this hot key works in the opposite way as F3. It allows you to locate all callers of a method in the method stack. One function related to this is to enable the "mark" function (occurrence marking ). Choose Windows> preferences> JAVA> editor> MARK occurrences and 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.

14) control-O: Quick outline ). With this shortcut key, you can quickly jump to a method or attribute, just enter the first few letters of the name.

15) control-/: Comments or uncomments a line. The same applies to multiple rows.

16) control-alt-Down Arrow: copy one or more highlighted rows.

17) alt-Down Arrow: move one or more rows down. Alt-up arrow moves up.

URL: http://blog.csdn.net/liyong1115/archive/2008/01/30/2072876.aspx

**************************************** **************************************** ***
1) alt +/usage: prompts you to enter related functions, prompts you to enter related classes, and automatically enters Code such as if/switch;
2) Ctrl + Shift + F code formatting;
3) categories required for automatic import: Ctrl + Shift + O Simple Description: if 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. In this case, we only need to press Ctrl + Shift + O, and it will automatically help us import the category.
4) 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.
5) Visual switch: Ctrl + F8
6) "Ctrl + Shift + T" (Open Type ));
7) control-shift-T: Open type ). If you are not interested in doing this, forget to open the source tree.
8) control-shift-R: Open resources (not just to find java files ). Tip: Use the yellow two-way arrow button in the navigator view to associate your editing window with the navigator. This will display the opened files in the hierarchy of the navigator to facilitate the organization of information. If this affects the speed, turn it off.
9) F3: open declaration ). Alternatively, use the Declaration tab (in Java view mode, choose windows --> show View --> Declaration ). When you select a method in the Code and press this button, it will display the entire method in the statement box.
10) alt-left arrow: Move back from the navigation history. Just like the back button of the web browser, it is particularly useful after the F3 jump. (Used to return the original compilation location)
11) alt-right arrow: forward in the navigation history.
12) control-Q: Return to the Last edited place. This shortcut key is also used when you jump to the code. Especially when you drill too deep and forget what you did first.
13) control-shift-G: Search for reference in workspace ). This is the premise of refactoring. For methods, this hot key works in the opposite way as F3. It allows you to locate all callers of a method in the method stack. One function related to this is to enable the "mark" function (occurrence marking ). Choose Windows> preferences> JAVA> editor> MARK occurrences and 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.
14) control-O: Quick outline ). With this shortcut key, you can quickly jump to a method or attribute, just enter the first few letters of the name.
15) control-/: Comments or uncomments a line. The same applies to multiple rows.
16) control-alt-Down Arrow: copy one or more highlighted rows.
17) 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 key dialog box (Keys preferences diences). You can set the key here.
**************************************** **************************************** ***
1. view the JSP or JS path: Alt + press ENTER
2. When viewing the class file path, use Ctrl + Shift + R, and press ENTER + ALT
3. CTRL + Shift + X -- uppercase Ctrl + Shift + y -- lowercase
4. Press Ctrl + M or Ctrl + press enter on the keypad to maximize the window/restore
5. CTRL + 1 -- correct the error when an error occurs and get the prompt.
6. Alt + '[-- automatically generate paired symbols
7. CTRL + mouse -- jump
8. Press Ctrl + O -- Ctrl + O to open a window similar to outline. When the code window is maximized, use this to jump to the property/method.
9. Double-click the left bracket and select the content in the brackets.
10. select several lines, move the cursor to the beginning of the line, and press Ctrl + 1 -- put the code in for, while, if, do, try.
11. CTRL + Shift + f -- if the selected text is selected, format the text. If no selected text is selected, format the entire document.
12. CTRL + space -- prompt information. For example, if sysout is selected, system. Out. println () is output ();
13. CTRL +/-- single line comment | cancel comment
14. CTRL + Shift +/-- Comment out a selected block /**/
15. CTRL + Shift +/-- cancel a comment Block
16. CTRL + Shift + O -- automatically corrected the introduced class (add required, delete useless)
17. CTRL + k -- find the next
18. CTRL + Shift + k -- search back
19. Alt +/: code prompt note: In general, there is a conflict with the input and output, you can prompt the Code (Code assist): Ctrl + J (note that you need to modify the incremental search)
20. CTRL + D: Delete the row where the cursor is located
21. CTRL + mouse stop: displays the source code of classes and methods.
22. CTRL + 1: move the cursor over a variable and press Ctrl + 1 to provide a quick refactoring solution. Select several lines and press Ctrl + 1 to put the code into the for, while, if, do, or try code blocks.
23. F3: open the file that declares the reference, hierarchical call relationship Ctrl + mouse arrow
24. F4: Open the type hierarchy
25. CTRL + H: Open the search window
26. Alt + left: Back to step Alt + Right: previous step
**************************************** **************************************** ***
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 key of the input method or replace it with ALT +/for the moment)
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 not, it is not found in stutes line. It is particularly useful when querying a word. This function 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 change 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, and vice versa)
****************************************
The following shortcut keys are commonly used in refactoring. I like them and want to sort them out frequently (note: the keys for refactoring generally start with ALT + shift)
Alt + Shift + R Rename (one of my favorite ones, especially the rename of variables and classes, which saves 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)
CTRL + Shift + u after selecting the selected text, it is very similar to the shortcut key of the UE list query scope function.

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.