Table 1: Default keyboard shortcuts for Windows/Linux and Mac operating systems.
Windows / Linux Mac Description
General
Ctrl + S + S Save all
Ctrl + Alt + Y + + Y Synchronize
Ctrl + + F12 ctrl + + F12 Maximize/minimize editor
Alt + + F + + F Add to favorites
Alt + + I + + I Inspect current file with cur-
rent profile
Ctrl + ‘ ctrl + ‘ Quick switch scheme
Ctrl + Alt + S + , Open settings dialogue
Ctrl + Alt + + S + ; Open project structure dia-
log
Ctrl + ctrl + Switch between tabs and
tool window
Navigating and Searching Within Studio
Press twice Press twice Search everything (including
code and menus)
Ctrl + F + F Find
F3 + G Find next
+ F3 + + G Find previous
Ctrl + R + R Replace
Ctrl + + A + + A Find action
Ctrl + Alt + + N + + O Search by symbol name
Ctrl + N + O Find class
Ctrl + + N + + O Find file (instead of class)
Ctrl + + F + + F Find in path
(continued next page)
License · 1
(from previous page)
Windows / Linux Mac Description
Ctrl + F12 + F12 Open file structure pop-up
Alt + or Alt + ctrl + or ctrl + Navigate between open edi-
tor tabs
F4 or Ctrl + F4 or + Jump to source
+ F4 + F4 Open current editor tab in
new window
Ctrl + E + E Recently opened files pop-
up
Ctrl + + E + + E Recently edited files pop-up
Ctrl + + + + Go to last edit location
Ctrl + F4 + W Close active editor tab
Esc Return to editor window
from a tool window
+ Esc + Esc Hide active or last active tool
window
Ctrl + G + L Go to line
Ctrl + H ctrl + H Open type hierarchy
Ctrl + + H + + H Open method hierarchy
Ctrl + Alt + H ctrl + + H Open call hierarchy
Writing Code
Alt + Insert + N Generate code (getters,
setters, constructors, hash-
Code/equals, toString, new
file, new class)
Ctrl + O ctrl + O Override methods
Ctrl + I ctrl + I Implement methods
(continued next page)
License · 2
(from previous page)
Windows / Linux Mac Description
Ctrl + Alt + T + + T Surround with (if...else /
try...catch / etc.)
Ctrl + Y + Delete line at caret
Ctrl + - or Ctrl + + + - or + + Collapse/expand current
code block
Ctrl + + - or Ctrl + + + + + - or + + + Collapse/expand all code
blocks
Ctrl + D + D Duplicate current line or se-
lection
Ctrl + Space ctrl + Space Basic code completion
Ctrl + + Space ctrl + + Space Smart code completion (fil-
ters the list of methods and
variables by expected type)
Ctrl + + + + Complete statement
Ctrl + Q ctrl + J Quick documentation
lookup
Ctrl + P + P Show parameters for se-
lected method
Ctrl + B or Ctrl + Click + B or + Click Go to declaration (directly)
Ctrl + Alt + B + Alt + B Go to implementations
Ctrl + U + U Go to super-method/super-
class
Ctrl + + I + Y Open quick definition lookup
Alt + 1 + 1 Toggle project tool window
visibility
F11 F3 Toggle bookmark
Ctrl + F11 + F3 Toggle bookmark with
mnemonic
(continued next page)
License · 3
(from previous page)
Windows / Linux Mac Description
Ctrl + / + / Comment/uncomment with
line comment
Ctrl + + / + + / Comment/uncomment with
block comment
Ctrl + W + Up Select successively increas-
ing code blocks
Ctrl + + W + Down Decrease current selection
to previous state
Ctrl + [ + + [ Move to code block start
Ctrl + ] + + ] Move to code block end
Ctrl + + [ + + + [ Select to the code block start
Ctrl + + ] + + + ] Select to the code block end
Ctrl + Del. + Delete to end of word
Ctrl + + Delete to start of word
Ctrl + Alt + O ctrl + + O Optimize imports
Alt + + Project quick fix (show in-
tention actions and quick
fixes)
Ctrl + Alt + L + + L Reformat code
Ctrl + Alt + I ctrl + + I Auto-indent lines
/ + / + Indent/unindent lines
Ctrl + + J ctrl + + J Smart line join
Ctrl + + Smart line split
+ + Start new line
F2 / + F2 F2 / + F2 Next/previous highlighted
error
(continued next page)
License · 4
(from previous page)
Windows / Linux Mac Description
Build and Run
Ctrl + F9 + F9 Build
+ F10 ctrl + R Build and run
Ctrl + F10 ctrl + + R Apply changes (with Instant
Run)
Debugging
+ F9 ctrl + D Debug
F8 F8 Step over
F7 F7 Step into
+ F7 + F7 Smart step into
+ F8 + F8 Step out
Alt + F9 + F9 Run to cursor
Alt + F8 + F8 Evaluate expression
F9 + + R Resume program
Ctrl + F8 + F8 Toggle breakpoint
Ctrl + + F8 + + F8 View breakpoints
Refactoring
F5 F5 Copy
F6 F6 Move
Alt + Del. + Safe delete
+ F6 + F6 Rename
Ctrl + F6 + F6 Change signature
Ctrl + Alt + N + + N Inline
(continued next page)
License · 5
(from previous page)
Windows / Linux Mac Description
Ctrl + Alt + M + + M Extract method
Ctrl + Alt + V + + V Extract variable
Ctrl + Alt + F + + F Extract field
Ctrl + Alt + C + + C Extract constant
Ctrl + Alt + P + + P Extract parameter
Version Control / Local History
Ctrl + K + K Commit project to VCS
Ctrl + T + T Update project from VCS
Alt + + C + + C View recent changes
Alt + ‘ ctrl + V Open VCS popup
License · 6