Idea basic shortcut commands

Ctrl+Alt+O Optimize imported classes and packages
Alt+Insert Generate code (such as get, set method, constructor, etc.) or right click (Generate)
fori/sout/psvm + Tab
Ctrl+Alt+T Generate try catch or Alt+ enter
CTRL+ALT+T Put the selected code in TRY{} IF{} ELSE{}
Ctrl + O Overwrite method
Ctrl + I Implementation method
Ctr+shift+U Case conversion
ALT+Enter the package, automatically correct
ALT+ / Code prompt
CTRL+J, automatic code
Ctrl+Shift+J, integrate two lines with one line
CTRL+space code prompt
CTRL+SHIFT+SPACE auto-complete code
CTRL+ALT+L format code
CTRL+ALT+I auto-indent
CTRL+E Recently changed code
CTRL+ALT+SPACE class name or interface name prompt
CTRL+P method parameter prompt
CTRL+Q, you can see the declaration of the current method
Shift+F6 refactoring-rename (package, class, method, variable, even Notes, etc.)
Ctrl+Alt+V to extract variables.
Query shortcut keys
Ctrl+Shift+Backspace can jump to the last edited place
CTRL+ALT+ left/right Navigate the edited place before and after
ALT+7 Display the structure of the current file in the left window
Ctrl+F12 Float display the structure of the current file
ALT+F7 Find all references to your function or variable or class
CTRL+ALT+F7 Find your function or variable or class all references to the place
Ctrl + Shift + Alt + method or variable N Find a class
, double-click SHIFT find files in all directories of the project
Ctrl + N look like
Ctrl + Shift + N to find the file
CTRL + G to locate a row
CTRL + F in Find text in current window
CTRL+SHIFT+F Find text in specified window
CTRL+R Replace text in current window
CTRL+SHIFT+R Replace text in specified window
ALT+SHIFT+C Find modified file
CTRL+E Recently opened file
F3 Find the occurrence position of
a keyword below SHIFT+F3 The occurrence position of the
next keyword Select the text, press Alt+F3 to highlight the same text, F3 to find the same text down one by one
F4 Find the source of the variable
CTRL+SHIFT+O Pop up the search content
Ctrl+ W Select the code and press continuously
F2 or Shift+F2 to highlight errors or warnings. Quick positioning
Ctrl+Up/Down cursor jump to the first or last line
Ctrl+B quickly open the class or method at the cursor
CTRL +ALT+B find all subcategories
CTRL+SHIFT+B Find the type of variable
Ctrl+Shift+Up and down keys to move the code up and down
Ctrl+Alt+ left/right Return to the last browsed position
Ctrl+X Delete line
Ctrl+D Copy line
Ctrl+/ or Ctrl+Shift+/ Comment (// Or
/.../ ) Ctrl+H Display the class structure diagram
Ctrl+Q Display the comment document
Alt+F1 Find the location of the code
Alt+1 Quickly open or hide the project panel
Alt+ left/right Switch the code view
ALT+ ↑/↓ Quickly move between methods Positioning
CTRL+ALT+ left/right Navigate the edited place forward and backward
Ctrl+Shift+Backspace can jump to the last edited place
Alt+6 Find
other shortcut keys of TODO
SHIFT+ENTER Start another line
CTRL+Z Backward (undo)
CTRL+SHIFT+Z direction Front (cancel undo)
CTRL+ALT+F12 Explorer to open the folder
ALT+F1 Find the directory location of the file
SHIFT+ALT+INSERT Vertical editing mode
CTRL+F4 Close the current window
Ctrl+Alt+V, you can import variables. For example: new String(); Automatically import variable definition
Ctrl+~, quickly switch schemes (menus such as interface appearance, code style, shortcut key mapping, etc.)
Debug shortcut key
alt+F8 When debugging, select the view value
Alt+Shift+F9, select Debug
Alt+Shift+F10, select Run
Ctrl+Shift+F9, compile
Ctrl+Shift+F8, view breakpoint
F7, step into
Shift+F7 , Smart step into
Alt+Shift+F7, force step into
F8, step over
Shift+F8, step out
Alt+Shift+F8, force step over
Alt+F9, run to the cursor
Ctrl+Alt+F9, force run to the cursor at
F9, the recovery program
Alt + F10, navigate to break
the reconstruction
Ctrl + Alt + Shift + T, the pop-up menu reconstructed
Shift + F6, rename
F6, mobile
F5, copy
Alt + delete, delete safe
Ctrl + Alt + N , Inline
zhangqingqing5211314

Guess you like

Origin blog.csdn.net/zhang_yuanbai/article/details/108701803