1. CTRL + Shift + R: Open the resource
This may be the most time-efficient combination of all shortcut keys. This set of shortcuts allows you to open any file in your workspace, and you only need to press the file name or the first few letters in the mask name, such as applic *. xml. The disadvantage is that this set of shortcut keys are not available in all views.
2. CTRL + O: Quick outline
If you want to view the method of the current class or a specific method, but do not want to pull the code down or use the search function, press Ctrl + O. It lists all methods and attributes of the current class. You only need to enter the name of the method you want to query and click Enter to directly jump to the desired location.
3. CTRL + E: Quick conversion Editor
This set of shortcut keys will help you browse between open editors. You can use Ctrl + Page down or Ctrl + page up to browse the front and back tabs. However, CTRL + E is more efficient when many files are opened.
4. Alt + Shift + R: Rename
Renaming properties and methods was a hassle a few years ago and requires a lot of search and replacement, so that the Code became scattered. Today's Java ide provides the source code processing function, as is eclipse. Now, renaming variables and methods is very simple, and you will get used to renaming every time a better alternative name appears. To use this function, move the mouse over the attribute or method name, press Alt + Shift + R, enter a new name, and press Enter. This is done. If you Rename an attribute in the class, you can click Alt + Shift + R twice. This will call the source code processing dialog box and automatically rename the get and set methods.
5. Shift + enter and CTRL + Shift + enter
Shift + enter creates a blank row under the current row, regardless of whether the cursor is at the end of the row. CTRL + Shift + enter insert a blank row before the current row.
6. Alt + direction keys
This is also a magic weapon to save time. This combination moves the content of the current row up or down. In the try/catch section, this shortcut is particularly useful.
7. CTRL + m
Large display screens can improve work efficiency. CTRL + m is the shortcut key for maximizing the size of the editor window.
8. F3: open declaration ). Alternatively, use the Declaration tab (in Java view mode, choose windows --> show View --> Declaration ). When you select a method in the Code and press this button, it will display the entire method in the statement box.
9. Control-Q: Return to the Last edited place. This shortcut key is also used when you jump to the code. Especially when you drill too deep and forget what you did first.