Android Studio Shortcuts for Linux

Keyboard shortcuts for Android Studio on Linux. Covers tool windows, code navigation, refactoring, and debugging for building Android apps on Linux.
Key label style

Tool windows

Project
Alt+1
Version Control
Alt+9
Run
Shift+F10
Debug
Shift+F9
Logcat
Alt+6
Return to Editor
Esc
Hide All Tool Windows
Ctrl+Shift+F12

Code completion

Basic CompletionShows suggestions for variables, types, methods, and expressions. Calling it twice in a row shows more results, including private members.
Ctrl+Space
Smart CompletionShows relevant options based on context, expected type, and data flow. Calling it twice in a row shows more results, including chains.
Ctrl+Shift+Space
Statement CompletionCompletes the current statement, adding missing parentheses, brackets, braces, and formatting.
Ctrl+Shift+Enter
Perform quick fixes and show intention actions
Alt+Enter

General actions

Save all
Ctrl+S
Synchronize
Ctrl+Alt+Y
Maximize/minimize editor
Ctrl+Shift+F12
Add to favorites
Alt+Shift+F
Inspect current file with current profile
Alt+Shift+I
Quick switch scheme
Ctrl+`
Open settings dialog
Ctrl+Alt+S
Open project structure dialog
Ctrl+Alt+Shift+S
Switch between tabs and tool window
Ctrl+Tab

View layouts

Zoom in/out
Ctrl+=
or
Ctrl+-
Fit to screen
Ctrl+0
Actual size
Ctrl+Shift+1

Design tools: Layout Editor

Toggle between Design and Blueprint modes
B
Toggle between Portrait and Landscape modes
O
Toggle devices
D
Force refresh
R
Toggle render errors panel
E
Delete constraints
Del
or
Ctrl+Click
Zoom in
Ctrl+=
Zoom out
Ctrl+-
Zoom to fit
Ctrl+0
PanHold Space, then click and drag.
Space+Drag
Go to XML
Ctrl+B
Select all components
Ctrl+A
Select multiple components
Shift+Click
or
Ctrl+Click

Design tools: Navigation Editor

Zoom in
Ctrl+=
Zoom out
Ctrl+-
Zoom to fit
Ctrl+0
PanHold Space, then click and drag.
Space+Drag
Go to XML
Ctrl+B
Toggle render errors panel
E
Group into nested graph
Ctrl+G
Cycle through destinations
Tab
or
Shift+Tab
Select all destinations
Ctrl+A
Select multiple destinations
Shift+Click
or
Ctrl+Click

Write code

Generate code (getters, setters, constructors, hashCode/equals, toString, new file, new class)
Alt+Insert
Override methods
Ctrl+O
Implement methods
Ctrl+I
Surround with (if...else, try...catch, etc.)
Ctrl+Alt+T
Delete line at caret
Ctrl+Y
Collapse/expand current code block
Ctrl+-
or
Ctrl+=
Collapse/expand all code blocks
Ctrl+Shift+-
or
Ctrl+Shift+=
Duplicate current line or selection
Ctrl+D
Basic code completion
Ctrl+Space
Smart code completion (filters the list of methods and variables by expected type)
Ctrl+Shift+Space
Complete statement
Ctrl+Shift+Enter
Quick documentation lookup
Ctrl+Q
Show parameters for selected method
Ctrl+P
Go to declaration (directly)
Ctrl+B
or
Ctrl+Click
Go to implementations
Ctrl+Alt+B
Go to supermethod/superclass
Ctrl+U
Open quick definition lookup
Ctrl+Shift+I
Toggle project tool window visibility
Alt+1
Toggle bookmark
F11
Toggle bookmark with mnemonic
Ctrl+F11
Comment/uncomment with line comment
Ctrl+/
Comment/uncomment with block comment
Ctrl+Shift+/
Select successively increasing code blocks
Ctrl+W
Decrease current selection to previous state
Ctrl+Shift+W
Move to code block start
Ctrl+[
Move to code block end
Ctrl+]
Select to the code block start
Ctrl+Shift+[
Select to the code block end
Ctrl+Shift+]
Delete to end of word
Ctrl+Del
Delete to start of word
Ctrl+Bksp
Optimize imports
Ctrl+Alt+O
Project quick fix (show intention actions and quick fixes)
Alt+Enter
Reformat code
Ctrl+Alt+L
Auto-indent lines
Ctrl+Alt+I
Indent/unindent lines
Tab
or
Shift+Tab
Smart line join
Ctrl+Shift+J
Smart line split
Ctrl+Enter
Start new line
Shift+Enter
Next/previous highlighted error
F2
or
Shift+F2

Build and run

Build
Ctrl+F9
Build and run
Shift+F10
Apply changes and restart activity
Ctrl+F10
Apply code changes
Ctrl+Alt+F10

Debug

Debug
Shift+F9
Step over
F8
Step into
F7
Smart step into
Shift+F7
Step out
Shift+F8
Run to cursor
Alt+F9
Evaluate expression
Alt+F8
Resume program
F9
Toggle breakpoint
Ctrl+F8
View breakpoints
Ctrl+Shift+F8

Refactor

Copy
F5
Move
F6
Safe delete
Alt+Del
Rename
Shift+F6
Change signature
Ctrl+F6
Inline
Ctrl+Alt+N
Extract method
Ctrl+Alt+M
Extract variable
Ctrl+Alt+V
Extract field
Ctrl+Alt+F
Extract constant
Ctrl+Alt+C
Extract parameter
Ctrl+Alt+P

Version control/local history

Commit project to VCS
Ctrl+K
Update project from VCS
Ctrl+T
View recent changes
Alt+Shift+C
Open VCS dialog
Alt+`

Intro

Android Studio on Linux uses the same keymap as Windows, Alt for tool windows and Ctrl for most editing and navigation commands, the standard JetBrains keymap it inherits from IntelliJ IDEA.

Linux-specific shortcut notes

Tool windows use Alt. Alt+1 opens Project, Alt+9 opens Version Control, Alt+6 opens Logcat, the standard numbering for docked panels.

Search everything with a double Shift tap. Pressing Shift twice opens a box that searches code, files, classes, symbols, and menu actions at once.

Layout Editor shortcuts skip modifiers. B, O, D, R, and E switch modes and toggle panels with a single keypress, no Ctrl or Alt needed.

Run and Debug share the F9/F10 row. Shift+F10 runs the app, Shift+F9 debugs it, and F8/F7 step over and into code once a breakpoint hits.

Printable PDF

The Android Studio Linux shortcut list is available as a printable PDF. The tool window and code navigation shortcuts are the ones worth learning first.

FAQ

Need more than shortcuts?
Visit the Android Studio app page for an overview and helpful links.

Want to suggest a new app, report a bug, or get help? Email us at info@hkeys.app.

For anything else or just a quick hello, write to us at info@hkeys.app.