Eclipse shortcut keys

Source: Internet
Author: User

1. Editing classes

Ctrl + Q jumps to the last edit
Ctrl + 1 Quick fix tips
Alt +↓ Move one row down the current line
Alt +↑ Move up one row up the current line
Ctrl + Alt +↑ Copy the current line to the previous line (copy incremented)
Ctrl + Alt +↓ Copy the current line to the next line (copy incremented)
Ctrl + L positioned in a row
Ctrl +j Forward Incremental Lookup
Ctrl + Shift + J to increment lookup
Ctrl + O quickly displays the structure of the class: the package to which the class belongs, all the variables and methods in the class
Ctrl + T quickly displays the inheritance structure of the current class
Ctrl + Shift + M Adds an import statement to the file header
Ctrl + Shift + O Add the missing import statement and delete the extra import statement
Alt + Shift + O When a variable is selected, use this key combination to highlight all of the variables in the text (or click the Toggle Mark Occurrences button in the toolbar)
Alt + Shift + R renaming variables (rename of variables and classes, which can save a lot of labor than manual methods)
Alt + Shift + M Extract a method for a piece of code (this is one of the most common methods of refactoring, especially useful for a whole bunch of mud codes)

2. Formatting documents
Ctrl + I Indents the code of the selected block by formatting it to align the code
Ctrl + Shift + F formatting documents, formatting the entire document, including indents, line alignment, spaces between words

3. Window class
Ctrl + M Toggles the size of the window
Ctrl + Shift + F4 Close all open editing windows
CTRL + W (CTRL + F4) Close the current edit window

4. File class
Ctrl + S Saves the current file
Ctrl + Shift + S saves all unsaved files

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.