Organize Eclipse common shortcut keys

After the development environment was switched to the Mac, a large part of the shortcut keys under the original Windows were incompatible. I was used to the life of the shortcut keys. Suddenly, the shortcut keys did not work one day. The development efficiency was significantly reduced, and the input errors were frequent. Shortcuts make Eclipse not even know what you want.

The following are the frequently used Eclipse shortcuts that I have compiled, mainly classified according to the first key.
At the end of the document is a collection of shortcut keys for text editing under the Mac system to jump or select.

1. Command class
Command+1
quick fix
Command+d
Delete the current line
Command+Option+↓
Copy the current line to the next line
Command+Option+↑
Copy the current line to the previous line
Command+←
Move the cursor to the beginning of the current line
Command+→
Move the cursor to The end of the current line
Command+t
to quickly display the structure of the current class
Command+w
to close the current editing page
Command+Option+←
the previous edited page
Command+Option+→
the next edited page
Command+k
Refer to the selected keyword on the current edit page Search down
Command+e to
display the list of current editing pages and select pages to switch
Command+/
Comment or uncomment the current line
Command+Shift+e
to display the Editor manager, you can choose to switch the editor
Command+j
to search forward, find the entered characters in the current editing page, pay attention to the prompt
Command+Shift+J in the Eclipse status bar
Reverse search, similar to forward search
Command+Shift+W
to close all open Editor
Command+Shift+P
to locate matchers, suitable for scenarios with relatively large code scale, such as at the end of the while(){} loop body }, I want to jump to while(){.
Command+[
Navigate backward to the last edited file
Command+]
Navigate forward to the next edited file


2. Option class
Option+↓
Move the current line down
Option+↑
Move the current line up
Option+Enter
Display the properties of the currently selected resource
Option+/
Code Assistant "Intelligent Prompt"
Option+Command+R
Rename
Option+Command+C
Modify function structure, applicable to refactoring
Option+Command+L
extracts local variables

3. Control class
Control+M
maximizes or restores the current editor or view

4. Shift class
Shift+Command+↑
selects the cursor to the beginning of all text
Shift+Command+↓
selects the cursor to the end of all text
Shift +Command+→
Select the cursor to the end of the current line
Shift+Command+←
Select the cursor to the beginning of the current line

5. Supplementary Instructions
Eclipse is basically the same as the Mac system for text editing jumps and selection jumps. The following is for Mac The system supports text selection or middle or jump to this block.
1. Text position jump shortcut:
Jump to the beginning of a line:
Command+Left arrow
Jump to the end of a line:
Command+Right arrow
Jump to the beginning of the current word (suitable for English and Pinyin):
Option+Left arrow
Jump to the current The end of the word (suitable for English and Pinyin):
Option+Right Arrow
Jump to the beginning of all texts:
Command+Up Arrow
Jump to the end of all texts:
Command+Down Arrow
2. Shortcut keys for text selection
Adding Shift to the above shortcut keys can be extended to a shortcut key for the

selected the text from the cursor to the beginning of the line:
Shift+Command+Left arrow
Select the text from the cursor to the end of the line:
Shift+Command+Right arrow
Select the cursor to the current line The beginning of a word (suitable for English and Pinyin):
Shift+Option+Left arrow
Select the cursor to the end of the current word (suitable for English and Pinyin):
Shift+Option+Right arrow
Select the cursor to the beginning of all texts:
Shift+Command+Up arrow
Select the cursor to The end of all text:
Shift+Command+Down arrow
3. Some shortcut keys in vim
Shift+4
line end
Shift+6
line beginning
Shift+G
end of the document
gg
document head
6. Terminal cursor related
Ctrl+u
delete the character from the cursor to the beginning of the line
Ctrl+k
deletes the character from the cursor to the end of the line
Ctrl+h
deletes a character (backspace delete)
Ctrl+c
cancels the command entered in the current line
Ctrl+a
moves the cursor to the beginning of the line
Ctrl+e
to move the cursor to the end of the line
Ctrl+l
to clear the screen (similar to clear)
Ctrl+p
to call up the previous item in the command history (similar to ↑)
Ctrl+n
to call up the next item in the command history (similar to ↓)
Ctrl+w
Delete a word before the current cursor
Ctrl+y
Paste (Ctrl+w) Deleted word
Alt+←
Move between words to the left
Alt+→
Move between words to the right
7. References
1.manreadline
2.http://www.macx. cn/thread-2037724-1-1.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326926592&siteId=291194637