Editing & Code Generation10
Alt+Enter
Quick Fix / Intention
Show quick-fix options for errors or warnings.
Ctrl+Space
Basic Completion
Show basic code completion suggestions.
Ctrl+Shift+Space
Smart Completion
Show type-aware smart completion.
Ctrl+/
Line Comment
Toggle line comment on current or selected lines.
Ctrl+Shift+/
Block Comment
Apply block comment to selection.
Ctrl+D
Duplicate Line
Duplicate the current line or selected block.
Ctrl+Y
Delete Line
Delete the current line.
Ctrl+Alt+L
Reformat Code
Reformat code according to style settings.
Ctrl+Shift+Up/Down
Move Line
Move the current line or block up or down.
Ctrl+Alt+T
Surround With
Surround selected code with if/try/for etc.
Navigation8
Ctrl+P
Find File
Quickly open a file by name.
Shift+Shift
Search Everywhere
Search files, classes, symbols, and actions.
Ctrl+Shift+F
Find in Files
Search text across the entire project.
Ctrl+B
Go to Definition
Navigate to the definition of a symbol.
Alt+F7
Find Usages
Find all usages of the current symbol.
Ctrl+E
Recent Files
Show recently opened files.
Ctrl+G
Go to Line
Jump to a specific line number.
Ctrl+F12
File Structure
Show the class/method structure of the current file.
Run & Debug8
Shift+F10
Run
Run the current configuration.
Shift+F9
Debug
Start debugging the current configuration.
Ctrl+F2
Stop
Stop the running program.
F8
Step Over
Step over to the next line during debugging.
F7
Step Into
Step into a function call.
Shift+F8
Step Out
Step out of the current function.
F9
Resume
Resume execution until the next breakpoint.
Ctrl+F8
Toggle Breakpoint
Add or remove a breakpoint on the current line.
Refactoring6
Shift+F6
Rename
Rename a variable, function, or class everywhere.
Ctrl+Alt+M
Extract Method
Extract selected code into a new method.
Ctrl+Alt+V
Extract Variable
Extract a selected expression into a variable.
Ctrl+Alt+C
Extract Constant
Extract a value into a constant.
Ctrl+Alt+N
Inline Variable
Inline a variable at its usage sites.
F6
Move
Move a class or file to another package.
No shortcuts found