Eclipse Common shortcut keys

Source: Internet
Author: User
Tags delete key

Edit related shortcut keys
1. "Alt+/"
To provide the user with content assistance, do not worry about the method and the name of the property, when the name of the class, method and property are not fully used, it is very useful.
2. "Ctrl+o"
shows an outline of the methods and properties in a class that quickly locates the methods and properties of a class and is useful for finding bugs.
3. "Ctrl+/"
Quickly add comments, can quickly add a comment or uncomment the line of the cursor or the selected line, you may always need to annotate something or uncomment it when debugging, and now it's okay to repeat the comments on each line.
4. "Ctrl+d"
Delete the current line, which is also the author's favorite one, do not have to delete a row and press so many times the delete key.
5. "Ctrl+m"
Window maximization and restore, when the user in the window to operate, always feel that the current window is small (especially when writing code), now good, try "ctrl+m" shortcut keys.

Viewing and locating shortcut keys
1. "Ctrl+k", "ctrl++shift+k" quickly down and up to find the selected content, it is no longer necessary to use the mouse to click the Find dialog box.
2. The Java class file can be found in the "Ctrl+shift+t" lookup workspace (Workspace) build path, not to find the class, and you can use "*", "? "And so on wildcard characters.
3. "Ctrl+shift+r", "ctrl+shift+t" Find all files (including Java files) in the workspace (Workspace), you can also use wildcard characters.
4. "Ctrl+shift+g" finds references to classes, methods, and properties. For example, to modify the code that refers to a method, you can quickly locate all references to this method through the "ctrl+shift+g" shortcut key.
5. "Ctrl+shift+o" quickly import all the packages required for the project
6. "Ctrl+shift+f" when you see a piece of code is not pleasing to the eye, select and press this shortcut to format the code, if you do not select the code is the default format of the current file (Java file).
7. "Alt+shift+w" locates the path in the project where the current file is located, so you can quickly locate the location of the browser view, such as finding the package that contains the file.
8. "Ctrl+l" is positioned to a row in the current editor and is also valid for non-Java files.
9. "Alt+←", "alt+→": Backward history and forward history, very useful in tracking code.
10. "F3" quickly locates a class, method, and property of the cursor position.
11. "F4" displays the inheritance relationship of the class and opens the Class inheritance view.

Debugging shortcut keys
1. "Ctrl+shift+b" sets a breakpoint on the current line or cancels the set breakpoint.
2. "F11" debugs the last executed program.
3. "Ctrl+f11" runs the last executed program.
4. "F5" is traced to the method, and when the program executes to a method, it can be traced to the method by pressing the "F5" key.
5. "F6" Step to execute the program.
6. "F7" executes the method, returning to the next statement that called this method.
7. "F8" continues execution, to the next breakpoint or program end.

Common editor shortcut keys
1. "Ctrl + C": Copy.
2. "Ctrl+x": Cut.
3. "Ctrl + V": Paste.
4. "Ctrl+s": Save the file.
5. "Ctrl + Z": Undo.
6. "Ctrl+y": Repeat.
7. "Ctrl+f": Find.

other shortcut keys
1. "Ctrl+f6": Switch to the next editor.
2. "Ctrl+shift+f6": Switch to the previous editor.
3. "CTRL+F7": Switch to the next view.
4. "CTRL+SHIFT+F7": Switch to the previous view.
5. "Ctrl+f8": Switch to the next perspective.
6. "Ctrl+shift+f8": Switch to the previous perspective.

View the list of shortcut keys : ctrl+shift+l

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.