Common shortcut keys for Eclipse

Source: Internet
Author: User

1. Editing classes

ctrl+/: Add or remove comments for the selected piece of code//(code block must be selected)

Ctrl+q: Skip to the last edit

Ctrl+d: Delete When moving forward

Ctrl+alt+ Arrow: Copy the current line to the top (bottom) row (copy increase)

Ctrl+f: Used to find variables in your current document, you can replace the variable name

Ctrl+o: Quickly display the structure of a class: The package that the class belongs to, all the variables and methods in the class

Ctrl+t: Quickly display the inheritance structure of the current class

Alt+shift+r: Renaming variables (rename of variables and classes, saving a lot of labor than manual methods)

2. Formatting documents

Ctrl+i: Indent The selected code block by formatting 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: toggling the size of a window

CTRL+SHIFT+F4: Close all open editing windows

Ctrl+w (CTRL+F4): Close the current edit window

4. File class

Ctrl+s: Save current file

Ctrl+shift+s: Save all unsaved Files

Common shortcut keys for Eclipse

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.