Android Studio Shortcut Keys (Mac OS X 10.5+)

Modifier key

Command : ⌘ Option : ⌥ Control : ⌃ Shift : ⇧ Capslock : ⇪ Tab : ⇥ Esc : ⎋ Return : ⏎ Delete : ⌫ Backspace : ⌦ (fn ⌫)

General

Command Name
⌘ S Save all
⌘ ⌥ Y Sync
⌃ ⌘ F12 Maximize the editor/Minimize
⌥ ⇧ F Add to Favourites
⌥ ⇧ I Perform inspection of the current file using the current profile
^ ` Quick switch
⌘ , Open the settings dialog
⌘ ; Open the project structure dialog
⌃ ⇥ Switching between tabs and tool windows

Move and search within Studio

Command Name
⇧ ⇧ Find All (including code and menu)
⌘ F Search
⌘ G Search for
⌘ ⇧ G Search before
⌘ R Replacement
⌘ ⇧ A Search for operations
⌘ ⌥ O Search by symbol name
⌘ O Find class
⌘ ⇧ O Search for files (not classes)
⌘ ⇧ F Search in the path
⌘ F12 Open a file structure pop-up
⌃ →/← Switch open editor tabs
F4 / ⌘ ↓ Jump to source
⇧ F4 Open the current editor tab in a new window
⌘ E Show pop-up of recently opened files
⌘ ⇧ E Show pop-up of recently edited files
⌘ ⇧ ⌦ Move to the last edited location
⌘ W Close the active editor tab
Return to the editor window from the tool window
⇧ ⎋ Hide the active tool window or the last active tool window
⌘ L Move to line
⌃ H Open type hierarchy
⌘ ⇧ H Open method hierarchy
⌃ ⌥ H Open call hierarchy

Code description

Command Name
⌃ ⇧ T Create a new terminal instance
⌘ N Codes (getters, setters, constructors, hashCode/Generate equals, toString, new file, new class)
⌃ O Override method
⌃ I Implement method
⌘ ⌥ T (if...else / try...catch /Etc.)
⌘ ⌦ Delete the line indicated by the caret
⌘ -/+ Collapse the current code block/expand
⌘ ⇧ -/+ Collapse all code blocks/expand
⌘ D Duplicate the current row or selection
⌃ Space Basic code completion
⌃ ⇧ Space Smart code completion (filters a list of methods and variables by type prediction)
⌘ ⇧ ⏎ Completing the statement
⌃ J Quick search for documents
⌘ P Show parameters for the selected method
⌘ B / ⌘ Click Move (directly) to the declaration
⌘ ⌥ B Move to implementation
⌘ U super method/Move to super class
⌘ Y Open a quick search for definitions
⌘ 1 Displaying the project tool window/Hidden switch
F3 Bookmark switching
⌥ F3 Switching bookmarks with mnemonics
⌘ / Comment in line comment/Uncomment
⌘ ⇧ /Comment with block comment/Uncomment
⌥ ↑ Widen the selection of code blocks
⌥ ↓ Shrink the current selection to the previous state
⌥ ⌘ [ Move to the starting point of the code block
⌥ ⌘ ] Move to the end of the code block
⌥ ⌘ ⇧ [ Select up to the starting point of the code block
⌥ ⌘ ⇧ ] Select to the end of the code block
⌥ ⌫ Delete to the end
⌥ ⌦ Delete to the beginning of the word
⌃ ⌥ O Optimized import
⌥ ⏎ Quick fix of project (display of desired action and quick fix proposal)
⌘ ⌥ L Code reforming
⌃ ⌥ I Row autoindent
⇥/⇧ ⇥ Line indent/Unindent
⌃ ⇧ J Smart row join
⌘ ⏎ Smart line split
⇧ ⏎ Start a new line
F2 / ⇧ F2 next/Go to previous highlighted error
⌥ ⇧ mouse click Multi cursor

Build and run

Command Name
⌘ F9 Build
⌃ R Build and run

debug

Command Name
⌃ D debug
F8 Step over
F7 Step in
⇧ F7 Smart step-in
⇧ F8 Step out
⌥ F9 Execute to the cursor position
⌥ F8 Evaluate the formula
⌘ ⌥ R Resume the program
⌘ F8 Switching breakpoints
⌘ ⇧ F8 Show breakpoints

Refactoring

Command Name
F5 copy
F6 Move
⌘ ⌫ Safe deletion
⇧ F6 change name
⌘ F6 Signature change
⌘ ⌥ N Inline
⌘ ⌥ M Method extraction
⌘ ⌥ V Extracting variables
⌘ ⌥ F Field extraction
⌘ ⌥ C Extraction of constants
⌘ ⌥ P Parameter extraction

Version control / local history

Command Name
⌘ K Commit the project to VCS
⌘ T Update project from VCS
⌥ ⇧ C View recent changes
⌃ V Open VCS pop-up

Recommended Posts

Android Studio Shortcut Keys (Mac OS X 10.5+)
Android Studio x Wear Os by Google
Eclipse shortcut keys (Windows, Mac)
Notes in Android studio
Defeating Android Studio Part 3-6
Defeating Android Studio Part 1 & Part 2
[Mac] Android Studio quits for an unexpected reason during installation