eclipse for mac common shortcut keys

In order to improve development efficiency, Eclipse provides us with many shortcut keys, which can help us complete some tedious operations quickly and conveniently.

   Regarding the shortcut keys of Eclipse for Windows, you can find them in search engines such as Baidu and Google. Here, only the common shortcut keys of Eclipse for Mac are provided. I'm not going to list all the shortcuts, it's very unnecessary.

Command + O: Show outline
Command + 1: Quick fix
Command + D: Delete current line
Command + Option + ↓: Copy current line to next line
Command + Option + ↑: Copy current line to previous line
Option + ↓: Current line and The lower line interactive position
Option + ↑: the current line and the upper line interactive position
Option + ←: the previous edited page
Option + →: the next edited page
Option + Return: display the properties of the currently selected resource
Shift + Return: in the current line Insert a blank line in the next line
Shift + Control + Return: Insert a blank line in the current line
Control + Q: Go to the last edit place
Control + M: Maximize the current Edit or View (press again to minimize)
Control + /: Comment the current line, press again to uncomment
Command + T: Quickly display the inheritance structure of the current class
Command + W: Close the current Editor
Command + K: Refer to the currently selected Word to quickly navigate to the next
Command + E: Quickly display the current Editor's Drop-down list (if the current page is not displayed in bold)
Option + /: The code assistant completes the insertion of some code (commonly known as "intelligent tips")
Command + Shift + E: Displays the manager that manages all currently open Views
Command + J: Forward incremental search (after pressing Command + J, the editor for each letter you type provides a quick match to locate a word, if not, it will display not found in the Stutes Line)
Command + Shift + J: Reverse incremental search
Command + Shift + W: Close all open editors
Command + Shift + X: Change all currently selected text to uppercase
Command + Shift + Y: Change all currently selected text to uppercase Lowercase
Command + Shift + F: Format the current code
Command + Shift + P: locate the matching character (such as {}) (when positioning from the front to the back, the cursor should be in the matching character, from the back to the front, and vice versa)

Option + Command + R: Rename (especially the Rename effect of variables and classes is more obvious)
Option + Shift + M: Extraction method (this is one of the most common methods in refactoring, especially for a lot of mud balls The code is useful)
Option + Command + C: Modify the function structure (there are N functions that call this method, and you can modify it once)
Option + Command + L: Extract local variables (you can directly extract some magic numbers and strings into a variable , especially when multiple calls)
Option + Shift + F: Change the Local variable in the Class to a Field variable (a more practical function)
Option + Command + Z: Refactoring regret medicine (Undo)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326225580&siteId=291194637