Practical shortcuts :( red font shortcuts to most commonly used )
1. Automatic code ----------- --------
Fori / Sout / PSVM the Tab + to generate cycle, System. out, main methods boilerplate boilerplate code
2. -------------------
Intellij IDEA中生成foreach或者loop或普通for的快捷键
iter Iterate (for each..in)
itin Iterate (for..in)
itli Iterate over a List
itar Iterate elements of arra
ritar Iterate elements of array in reverse order
itit Iterate java.util.Iterator
---------------------
IntelliJ Idea
common list of shortcuts
Alt + Enter imported packages, automatic correction
Ctrl + N find classes
Ctrl + Shift + N lookup file
Ctrl + Alt + L format code
Ctrl + Alt + O imported classes and packages optimized
Alt + the Insert generated code (e.g., 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 autocomplete codes
Ctrl + space code prompt
Ctrl + Alt + Space class or interface name prompt
Ctrl + P method parameter prompts
Ctrl + Shift + Alt + N to find methods or variables class
Alt + Shift + C Comparative recent changes,
Shift + F6 Reconstruction - rename
Ctrl + Shift + first the key
Ctrl + X delete rows
Ctrl + D line copy
Ctrl + / or Ctrl + Shift + / comment (// or /*...*/)
the Ctrl + J automatic code
Ctrl + E recently opened files
Ctrl + H show the structure of the class Figure
Ctrl + Q show comments document
Alt + F1 lookup code location
Alt + 1 project panel quickly open or hidden
Ctrl + Alt + left / right position back to last visit
Alt + left / right switching code view
Alt + Up / Down Fast between mobile positioning method
Ctrl + Shift + Up / Down codes up / down movement.
Select the text, press Ctrl + Shift + F7, highlight all the text, press Esc to highlight disappear.
Ctrl + W to select the code, there will be other effects of continuous press
to select text, press Alt + F3, down one by one to find the same text, and highlight.
Ctrl + Up / Down? Cursor jumps to the first or last row
Ctrl + B? Quickly open the class or method of the cursor position?
Ctrl + O view of such methods which can be overwritten
--------- -------------------------------------------------- -------------------------------------------------
2 query shortcut
CTRL + N to find the classes
CTRL + SHIFT + N to find the file
CTRL + SHIFT + ALT + N to find a method or variable class
CIRL + B looking variable sources?
CTRL + ALT + B to find all subclasses
CTRL + SHIFT + B to find a class variable
CTRL + G positioned row?
the CTRL + F. to find text in the current window
CTRL + SHIFT + F find text in a specified window
CTRL + R alternative text in the current window
CTRL + SHIFT + R replacement text in the specified window
to find the modified file ALT + SHIFT + C
CTRL + E recently opened files
F3 downwardly appearance position search key
SHIFT + F3 keyword appears upward position
F4 source lookup variable
CTRL + ALT + F7 selected characters to find local project appears
CTRL + SHIFT + O to display the Find What pop-up
3. automatic code
ALT + Enter to import the package, automatic correction
CTRL + ALT + L formatting codes
CTRL + ALT + I automatically indent
CTRL + ALT + O optimization imported classes and packages
ALT + INSERT generated code (such as GET, SET method, constructor, etc.)
CTRL + E recently changed code
CTRL + SHIFT + sPACE auto-complete the code
CTRL + space code prompt
CTRL + ALT + sPACE class or interface name prompt
CTRL + P prompt method parameter
CTRL + J automatic code
CTRL + ALT + T in the selected code TRY {} IF {} eLSE { } in the
CTRL + ALT + M extraction method
5. other shortcuts
CIRL + U case conversion
CTRL + Z backwards
CTRL + SHIFT + Z forward
CTRL + ALT + F12 to open the Explorer folder
ALT + F1 Find a file directory location
SHIFT + ALT + INSERT vertical editing mode
CTRL + / comments //
CTRL + the SHIFT + / comments /*...*/
CTRL + W to select the code, there will be other effects of continuous press
CTRL + B to quickly open class or method cursor at the
? ALT + ← / → switching code view
CTRL + ALT ← / → return to the last edit location
ALT + ↑ / ↓ mobile positioning quickly through method
SHIFT + F6 Reconstruction - rename
CTRL + H show class structure Figure
CTRL + Q show comments document
ALT + 1 project panel quickly open or hidden?
CTRL + the SHIFT + uP / dOWN Code up / down.
CTRL + UP / DOWN cursor jumps to the first or last row
ESC edit cursor returns to block
SHIFT + ESC cursor returns to the edit box, close the window useless
Ctrl + Shift + 1-9 or 1-9 acts bookmark positioned letters,
the Ctrl + 1-9 automatically jump to the locked position of the bookmark
Ctrl + F9 to recompile, delete the cache. Live update
Ctrl + Shift + U to switch case