Eclipse keyboard control

Source: Internet
Author: User

1. Basic, eclipse features

CTRL + D Delete the current row

Alt + up/down move up to move down the current row

CTRL + ALT + up/down copy the current row and paste it to the next row. If multiple rows are selected (you can press SHIFT + up/down to select multiple rows), copy and paste multiple rows at a time. Eclipse's classic shortcut keys must be learned!

Alt + left/right eclipse remembers where you edited it. Press these two keys to jump back and forth in the History editing area. It is especially useful when editing multiple files at the same time!

Why is the shortcut key Ctrl + 1? It should be number one! Very important. When a code error occurs, press this key combination to provide many solutions to the error.

Shift + enter insert a row below (O in VIM)

CTRL + Shift + enter insert a line above (O in VIM)

2. Advanced

CTRL + E: display the list of opened files. Use up/down to select the files to be edited and press Enter. It's a bit like the CTRL + Tab key in operabrowser.

CTRL + j This incremental search must be learned. The lower case J is used to search down, and the upper case J is used to search up.

CTRL + k is used in combination with incremental search to find the next match.

CTRL + l jump to a line. When the stack information tells you that the row has an error, use this combination to quickly locate the error.

CTRL + m to maximize the current view. Press it again to return. When writing code, you can maximize the current window and focus more on it.

CTRL +. jump to the next place with a yellow underline (warning) or a red underline (compilation error)

CTRL + O open the outline of the current file to facilitate quick jump within the file. Press Ctrl + O again to display more elements (such as inherited methods )! Very easy to use. You don't need to click a method in the outline view. You can also search for methods!

CTRL + q jump to the Last edited place

CTRL + F7 view switch usually opens the package view, Editor view, and outline view at the same time. With this shortcut key, you can switch the current view. Press ctrl to select the view with up/down.

3. Advanced. Try it occasionally.

Shift + ALT + q select a view

Shift + ALT + x select the method for executing the current file (when you do not want to use Ctrl + F11)

Shift + ALT + s open the shortcut menu for code refactoring, press R to produce getter/setter, and press V to produce Constructor

What if Ctrl + Shift + O class is not imported? CTRL + 1, and then press enter? Yes, but you can try this combination.

CTRL + Shift + T Open type. This is flexible and can be used as a Type searcher.

4. Eclipse keyboard control

To become an eclipse keyboard controller, you must download an eclipse Vim plug-in! Google vrapper.

Configure a Vim shortcut key: Open configuration> keys, and configure Ctrl + Shift + V to enable/disable the shortcut key for vrapper.

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.