Eclipse is our common Java Development Editor, which supports a number of useful, but less well-known, shortcut key combinations. Through these combination shortcuts we can more easily browse the source code, so that the overall development efficiency and quality has been improved. Even once when I went to an IT company interview, the interviewer asked what the shortcut keys used for Eclipse were, and was ashamed to be 10. Now after a period of development and practice, I am here to share some of the personal feel more practical shortcut keys.
ctrl+shift+r: Open Resource
This set of shortcuts allows you to open any file in your workspace, and you only need to enter the first few letters of the file name or mask name to see a list of results that match. It's time-saving, wow.
ctrl+o: Fast outline
If you want to see what methods or properties the current class has, but don't want to pull the code down or use the Find function, use Ctrl+o. It can list all the methods and properties in the current class, you just enter the method name you want to query, and click Enter to jump directly to where you want to go.
Shift+enter and Ctrl+shift+enter
Shift+enter creates a blank line below the current line, regardless of whether the cursor is at the end of the row. Ctrl+shift+enter inserts a blank line before the current line.
ALT + arrow key
This is also a magic weapon to save time. This combination moves the contents of the current line up or down. In the Try/catch section, this shortcut is especially useful.
ctrl+m
Large display screen can improve productivity is known to everyone. Ctrl+m is the shortcut key for maximizing the editor window.
control-shift-t: Open type
Using Eclipse to easily open an implementation class for an interface, press CTRL+T to list the implementation class of the interface
control-/:
Comment on a line or uncomment it. This is also true for multiple lines.
ctrl+alt+h
If you want to know how a class's methods are called by those other classes, check the name of the method and press "Ctrl+alt+h"
ALT + LEFT and RIGHT arrow keys
We often encounter when looking at the code CTRL + left, layer tracking, and then lost in the code, then only need to press "ALT + LEFT ARROW key" can be returned to the last reading position, similarly, press "ALT + RIGHT ARROW key" will advance to just return to the reading position, just like the browser forward and Back button.
Ctrl+shift+o
Import the package.
Java Development-Common shortcut keys for Eclipse