Use of a shortcut key
1. Text editing
Delete Ctr + y
Copy Ctr + D
2. Smart Tips
Tip Ctr + Space
Smart Tips Ctr + SHIFT + Space
Complete the current Statement Ctr + SHIFT + ENTER
Suggested hint for parameter Ctr + ALT + P
Rearrange the formatting of the code Ctrl + Alt + L
Optimize for imports Ctrl + Alt + O
3. Location positioning
navigates to the next or previous error F2/shift + F2
Locating file Header ctr+g (navigates to file lines)
locating file End Ctr+g
Navigate to code block to start Ctr + [
Navigate to code block End Ctr +]
back to the nearest window F12
back to the previous file Alt + left
back to the file after ALT + right
navigate to last edit position Ctrl + Shift + Backspace
Switch from tool window or other window to file edit ESC
Close the recently opened window SHIFT + ESC
4. Classes, methods, file positioning
find class Ctr + N
find file Ctrl + Shift + n
symbol positioning CTRL + ALT + Shift + N
recently opened file Ctr + E
positioning the next method Alt + down
position the previous method Alt + up
View method parameter information Ctr + P
View the Doc Ctr + Q
for methods, classes
5. Class, method structure view, positioning
Skip to class or method declaration Ctr + B
Navigate to the class's parent class, Interface Ctr + U
View the inheritance structure of the class Ctr + H
View the inheritance structure of the method Ctr + SHIFT + H
view class or method is called Ctr + alt +h
in situ see class, method declaration Ctrl + Shift + I
6. Operation and Commissioning
Compile and Run
Ctrl + F9 Make project (compile modifed and dependent)
Ctrl + Shift + F9 Compile selected file, package or module
Alt + Shift + F10 Select configuration and run
Alt + Shift + F9 Select configuration and debug
Shift + F10 Run
Shift + F9 Debug
Ctrl + Shift + F10 Run context configuration from editor
Debugging
F8 Step Over
F7 Step into
Shift + F7 Smart Step Into
Shift + F8 Step out
Alt + F9 Run to Cursor
Alt + F8 Evaluate expression
F9 Resume Program
Ctrl + F8 Toggle Breakpoint
Ctrl + Shift + F8 View breakpoints
IntelliJ Idea Usage Tips