List of commonly used IntelliJ Idea shortcut keys, intellijidea
IntelliJ Idea common shortcut keysAlt + press enter to import the package, automatically corrected
Ctrl + N lookup class
Ctrl + Shift + N search for files
Ctrl + Alt + L format the code Ctrl + Alt + O optimize the imported class and Package
Alt + Insert generate code (such as get, set method, constructor, etc)
Ctrl + E or Alt + Shift + C recently changed code
Ctrl + R replace text Ctrl + F find text
Ctrl + Shift + Space auto-completion code
Ctrl + Space code prompt Ctrl + Alt + Space class name or interface name prompt Ctrl + P method parameter prompt Ctrl + Shift + Alt + N search method or variable Alt + Shift + C compare the recently modified code Shift + F6 reconstruction-Rename
Ctrl + Shift + TOP key
Ctrl + X Delete rows
Ctrl + D copy rows
Ctrl +/or Ctrl + Shift +/comment (// or /*...*/)
Ctrl + J Automatic Code
Ctrl + E recently opened file Ctrl + H display class structure Ctrl + Q display comment document
Alt + F1 locate code
Alt + 1 quickly open or hide the project panel Ctrl + Alt + left/right and return to the previous browsing position
Alt + left/right switch Code view Alt + Up/Down fast move between Methods locate Ctrl + Shift + Up/Down code move Up/Down. F2 or Shift + F2 highlight error or warning: Quickly locate the code tag after the input is complete, press Tab to generate the code. Select the text, press Ctrl + Shift + F7, highlight all the text, and Press Esc to highlight and disappear. Press Ctrl + W to select the code. press Alt + F3 to find and highlight the same text one by one. Ctrl + Up/Down jump to the first line or the last line Ctrl + B quickly open the class or method at the cursor