Shortcut Keys that can multiply eclipse Editing efficiency

Source: Internet
Author: User

Edit shortcuts

[Alt +/]: This shortcut is a good helper for users to edit and can help users with content. Do not worry about incomplete methods and attribute names, when you do not remember the names of classes, methods, and attributes, try the benefits of the [Alt +/] shortcut key.
CTRL + Shift + G: searches for class, method, and attribute references.
CTRL + G or Ctrl + the left mouse button: Find the declaration of the current element
CTRL + T: Search the implementation class of the current interface
CTRL +/: add or delete comments quickly
CTRL + D: Delete the current row.
CTRL + M: Maximize and restore the window
CTRL + Shift + F: format the code.
[Alt + ↓] and [Alt + →]: backward history and forward history
[F3]: Quickly locates a class, method, and attribute at the cursor position.
CTRL + ALT + bottom/top: copy a line of code CTRL + ALT + bottom/top
[Alt + bottom/top]: Move a line of code CTRL + ALT + bottom
[Ctrl + 1]: quick correction and rename menu
CTRL + F: The find/replace dialog box appears.
CTRL + Shift + u: searches for the selected content in the file and indicates
CTRL + H: A Powerful Search dialog box is displayed, including file search and Java search.
CTRL + L: click a line in the current editor.
CTRL + O: displays the outline.
CTRL + Shift + R: the "open resource" dialog box is displayed, allowing you to quickly locate a file (wildcard search is supported ).
CTRL + Shift + T: displays the "Open Type" dialog box to quickly locate a type (supports wildcard search ).
CTRL + Shift + O: Generate import quickly, or remove all unused import declarations at a time. After you copy a program from the Internet and do not know how to import the called class, try the [Ctrl + Shift + O] shortcut key.
[Alt + Shift + J]: automatically generates comments of the selected fields, methods, and types.

Debugging shortcuts
Eclipse has the following shortcut keys related to running debugging.
1. [Ctrl + Shift + B]: Set a breakpoint or cancel a breakpoint in the current row.
2. [F11]: debug the program that was last executed.
3. [Ctrl + F11]: run the program that was last executed.
4. [F5]: trace the method. When the program executes a method, press [F5] to track the method.
5. [F6]: One-step execution program.
6. [F7]: After the method is executed, the last statement that calls this method is returned.
7. [F8]: continue to run until the next breakpoint or program ends.

 

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.