Common shortcut keys for Eclipse

Source: Internet
Author: User

I. Common shortcut keys related to files

CTRL + N: Create a new project, file, folder, etc.

Ctrl+m: Maximizing/restoring the editing window

Alt+enter: Opens the Properties window for the selected project, package, file, etc.

Alt+shift+r: Rename the project name, file name, method name, variable name:

To rename the count, select Count to click the shortcut key, as follows:

Ctrl+e: Open the Edit window to view the table of contents

Ctrl+page up: Switch to the previous window of the edit window

Ctrl+page down: Switch to the next window in the edit window

ALT + Underlined letter (dialog box) such as:

Alt+k jumps to the package text box and Alt+m jumps to the name text box

Two. Writing code often uses shortcut keys:

Ctrl+alt+↑: Copy the line contents of the cursor up

Ctrl+alt+↓: Copy the line contents of the cursor down

Alt+↑: Move the row contents of the cursor up

Alt+↓: Move the row contents of the cursor down

Shift+enter: Add a blank line below the line where the cursor is located

Shift+ctrl+enter: Adds a blank line above the line where the cursor is located

Ctrl+1: Given solution (used when Red line is present)

ALT +?: Auto Prompt function

Alt+shift+z: Surround With: The effect is as follows:

Alt+shift+s: Pop Up the Source menu, click on the underlined letter (without ALT), go to the appropriate menu

ctrl+/: Comment (//) or dismiss comment

ctrl+shift+/: Block Annotations (/**/)

Ctrl+shift+\: Unblocking block annotations

Ctrl+d: Delete the row

Ctrl+t: Viewing inheritance and implementation relationships for classes

Ctrl+o: Viewing the structure of a class

Ctrl+shift+t: Open the View class window

Alt+shift+m: Extract the selected part as method

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.