Silicon Valley_Song Hongkang_IntelliJ IDEA common shortcut keys list

1-IDEA’s daily shortcut keys

Group 1: General purpose

illustrate shortcut key
Copy code-copy ctrl + c
paste-paste ctrl + v
cut ctrl + x
Undo-undo ctrl + z
Anti-undo-redo ctrl + shift + z
save-save all ctrl + s
Select all-select all ctrl + a

Group 2: Improving Writing Speed ​​(Part 1)

illustrate shortcut key
Smart Tips-edit alt + enter
Prompt code template-insert live template ctrl+j
Surround with xx blocks -surround with… ctrl+alt+t
Call out the generated getter/setter/constructor and other structures -generate... alt+insert
Automatically generate return value variables-introduce variable… ctrl+alt+v
Duplicate the specified line of code - duplicate line or selection ctrl+d
Delete the specified line of code -delete line ctrl+y
Switch to the next line of code gap-start new line shift + enter
Switch to the previous line of code gap-start new line before current ctrl +alt+ enter
Move code up-move statement up ctrl+shift+↑
Move code down-move statement down ctrl+shift+↓
Move line up - move line up alt+shift+↑
Move line down - move line down alt+shift+↓
Method parameter list reminder-parameter info ctrl+p

Group 3: Improving Writing Speed ​​(Part 2)

illustrate shortcut key
Modify specified variable names, method names, class names, etc. in batches -rename shift+f6
Extract code reconstruction method-extract method… ctrl+alt+m
Override methods of parent class-override methods… ctrl+o
Methods that implement interfaces-implements methods… ctrl+i
Switch the case of the selected structure-toggle case ctrl+shift+u
Batch import package-optimize imports ctrl+alt+o

Group 4: Class structure, finding and viewing source code

illustrate shortcut key
How to view source code-go to class… ctrl + select the specified structure or ctrl+n
Displays the current class structure and supports searching for specified methods, attributes, etc. -file structure ctrl+f12
Return to the previous edited page -back ctrl+alt+←
Go to the next editing page-forward ctrl+alt+→
Switch between open class files -select previous/next tab alt+←/→
Select the specified class with the cursor to view the inheritance tree structure-Type Hierarchy ctrl+h
View method documentation-quick documentation ctrl+q
UML diagram of class-show uml popup ctrl+alt+u
Locate a certain line-go to line/column ctrl+g
Backtrace the source of a variable or method-go to implementation(s) ctrl+alt+b
Folding method implementation-collapse all ctrl+shift+ -
Expand method implementation-expand all ctrl+shift+ +

Group 5: Find, Replace and Close

illustrate shortcut key
Find the specified structure ctlr+f
Quick search: Quickly locate the selected Word to the next one - find next ctrl+l
Find and Replace-replace ctrl+r
Move directly to the beginning of the current line -move caret to line start home
Move directly to the end of the current line - move caret to line end end
Query the reference of the current element in the current file, and then press F3 to select ctrl+f7
Full project search for text -find in path… ctrl+shift+f
Close the current window -close ctrl+f4

Group 6: Adjusting Format

illustrate shortcut key
Format code-reformat code ctrl+alt+l
comment with line comment ctrl + /
使用/取消多行注释-comment with block comment ctrl + shift + /
选中数行,整体往后移动-tab tab
选中数行,整体往前移动-prev tab shift + tab

2-Debug快捷键

说明 快捷键
单步调试(不进入函数内部)- step over F8
单步调试(进入函数内部)- step into F7
强制单步调试(进入函数内部) - force step into alt+shift+f7
选择要进入的函数 - smart step into shift + F7
跳出函数 - step out shift + F8
运行到断点 - run to cursor alt + F9
继续执行,进入下一个断点或执行完程序 - resume program F9
停止 - stop Ctrl+F2
查看断点 - view breakpoints Ctrl+Shift+F8
关闭 - close Ctrl+F4

Guess you like

Origin blog.csdn.net/m0_59281987/article/details/132825314