Editing快捷键 | 说明 |
---|---|
Ctrl + J | Basic code completion (the name of any class, method or variable) |
Ctrl + Alt + J | Class name completion (the name of any project class independently of current imports) |
Ctrl + Shift + Enter | Complete statement |
Ctrl + P | Parameter info (within method call arguments) |
Alt + Q | Quick documentation lookup |
Shift + F1 | External Doc |
Ctrl + mouse over code | Brief Info |
Ctrl + F1 | Show descriptions of error or warning at caret |
Alt + Insert | New |
Ctrl + O | Override methods |
Ctrl + Alt + T | Surround with… |
Ctrl + / | Comment/uncomment with line comment |
Ctrl + Shift + / | Comment/uncomment with block comment |
Ctrl + W | Select successively increasing code blocks |
Ctrl + Shift + W | Decrease current selection to previous state |
Alt + Enter | Show intention actions and quick-fixes |
Ctrl + Alt + L | Reformat code |
Ctrl + Alt + O | Optimize imports |
Ctrl + Alt + I | Auto-indent line(s) |
Ctrl + X or Shift + Delete | Cut current line or selected block to clipboard |
Ctrl + C or Ctrl + Insert | Copy current line or selected block to clipboard |
Ctrl + V or Shift + Insert | Paste from clipboard |
Ctrl + Shift + V | Paste from recent buffers… |
Ctrl + Shift + J | Smart line join |
Ctrl + Enter | Smart line split |
Ctrl + Shift + U | Toggle case for word at caret or selected block |
Ctrl + Delete | Delete to word end |
Ctrl + Backspace | Delete to word start |
Alt + NumPad+ / Alt + = | Expand code block |
Alt + NumPad- / Alt + - | Collapse code block |
Alt + Shift + NumPad+ / Alt + Shift + = | Expand code block All |
Alt + Shift + NumPad- / Alt + Shift + - | Collapse code block All |
Ctrl + = / Ctrl + NumPad+ | Expand all |
Ctrl + - / Ctrl + NumPad- | Collapse all |
Ctrl + F4 | Close active editor tab |
Navigating快捷键 | 说明 |
---|---|
Alt + N, C | Go to class |
Alt + N, F | Go to file |
Alt + N, S | Go to symbol |
Alt + Right/Left | Go to next/previous editor tab |
F12 | Go back to previous tool window |
Esc | Go to editor (from tool window) |
Ctrl + Shift + F4 | Close active run/messages/find/... tab |
Ctrl + G | Go to line |
Ctrl + E | Recent files popup |
Ctrl + Alt + Left/Right | Navigate back/forward |
Ctrl + Shift + Backspace | Navigate to last edit location |
Alt + F1 | Select current file or symbol in any view |
Ctrl + B or Ctrl + Click | Go to declaration |
Ctrl + Alt + B | Go to implementation(s) |
Alt + L | Open quick definition lookup |
Ctrl + Shift + B | Go to type declaration |
Ctrl + U | Go to super-method/super-class |
Alt + Up/Down | Go to previous/next method |
Alt + P | |
Ctrl + H | Type hierarchy |
Ctrl + Shift + H | Method hierarchy |
Ctrl + Alt + H | Call hierarchy |
F2 / Shift + F2 | Next/previous highlighted error |
F4 / Ctrl + Enter | Edit source / View source |
Alt + Home Show navigation bar | |
F11 Toggle bookmark | |
Ctrl + F11 | Toggle bookmark with mnemonic |
Shift + F11 | Show bookmarks |
Ctrl + #[0-9] / NumPad #[0-9] | Go to numbered bookmark |
Run&Debug快捷键 | 说明 |
---|---|
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 |
Ctrl+Alt+R | Run manage.py task |
F8 | Step over |
F7 | Step into |
Shift + F8 | Step out |
Alt + F9 | Run to cursor |
Alt + F8 | Evaluate expression |
Ctrl + Alt + F8 | Quick evaluate expression |
F9 | Resume program |
Ctrl + F8 | Toggle breakpoint |
Ctrl + Shift + F8 | View breakpoints |
查找/替换快捷键 | 说明 |
---|---|
Ctrl + F | Find |
Ctrl + R | Replace |
Ctrl + Shift + F | Find in path |
Ctrl + Shift + R | Replace in path |