Idea common shortcut keys

1. Text editing

      delete ctr + y

      copy ctr + D

2. Smart tips

       prompt ctr + space

       intellisense ctr + shift + space

       Complete current statement ctr + shift + enter

       The suggested prompt is the parameter ctr + alt + P

       Reformat the code Ctrl + Alt + L

       Optimize imports Ctrl + Alt + O

3. Location positioning

       Navigate to next or previous error F2 / Shift + F2

       Locate file header ctr+G (locate to file line number)

       locate end of file ctr+G    

       Navigate to the start of the code block ctr + [

       Navigate to the end of the code block ctr + ]

       Go back to recent window F12

       go back to previous file alt + left

       go back to the file after alt + right

       Navigate to last edit position Ctrl + Shift + Backspace

       Switch to file editing esc from tool window or other windows

       Close recently opened windows shift + esc

4, class, method, file location

find class ctr + N

       Find files Ctrl + Shift + N

       Symbol positioning Ctrl + Alt + Shift + N

       View file structure ctrl + F12

       recently opened file ctr + E

       Position the next method alt + down

       Position the previous method alt + up

       View method parameter information ctr + p

       View method, class doc ctr + Q

5. View and locate the structure of classes and methods

       Jump to class or method declaration ctr + B

       Navigate to the parent class, interface of the class ctr + U

       View class inheritance structure ctr + H

       View inheritance structure of methods ctr + shift + H

       View class or method being called ctr + alt +H 

       See class and method declarations in place Ctrl + Shift + I

6. Running and debugging

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

Guess you like

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