Some commonly used IDEA shortcut keys summarized by myself, take away if necessary!!!

ctrl+shift+alt: multi-line operation
psvm: generate main() method;
fori: generate for loop;
Ctrl+Alt+v: automatically complete the return value type
ctrl+o: override method
ctrl+i: implement the interface Method
ctrl+shift+u: case conversion
CTRL+SHIFT+Z: cancel and undo
Alt+Insert: generate construction method, getter, setter
ctrl+y: delete the current line
Ctrl+Shift+J: merge the selected lines into one line
ctrl+g : Position to a certain line
Ctrl+Shitft+Down arrow: Move the code block where the cursor is located down as a whole
Ctrl+Shift+Up arrow: Move the code block where the cursor is located as a whole
Alt+Shift+Down arrow: Move the line down
Alt +Shift+Up Arrow: Move the line up
Ctrl+F: Find in the current file
Ctrl+R: Replace the string
Ctrl+Shift+F: Find the string in the global file
Ctrl+Shift+R: Replace the string in the global
Ctrl+Shift+Enter: automatically complete {} or semicolon;
Shift+Enter: start a new line below the current line
Ctrl+Alt+Enter: insert a new line above the current line
Ctrl+Delete: delete the word where the cursor is All characters at the end

Guess you like

Origin blog.csdn.net/weixin_45567738/article/details/113926287