Keyboard shortcuts  |  Android Studio  |  Android Developers

Discover keyboard shortcuts for many common actions in Android Studio.

Keyboard shortcuts  |  Android Studio  |  Android Developers

Android Studio

A visual cheat-sheet for the 130 keyboard shortcuts found in the Andriod Studio software

Reference Link

Overview

Total Shortcuts: 130

  • General:9 shortcuts
  • Navigating and Searching:24 shortcuts
  • Viewing Layouts:4 shortcuts
  • Layout Editor:12 shortcuts
  • Navigation Editor:9 shortcuts
  • Writing Code:43 shortcuts
  • Build and Run:4 shortcuts
  • Debugging:10 shortcuts
  • Refactoring:11 shortcuts
  • Version Control:4 shortcuts

General

  • Save allCtrl + S
  • SynchronizeCtrl + Alt + Y
  • Minimize or maximize the editorCtrl + Shift + F12
  • Add to favoritesAlt + Shift + F
  • Inspect the current file with the current profileAlt + Shift + I
  • Quick switch the schemeCtrl + `
  • Open the settings dialogueCtrl + Alt + S
  • Open the project structure dialogueCtrl + Alt + Shift + S
  • Switch between the tabs and tool windowCtrl + Tab

Navigating and Searching

  • Search everything, including code and menusShift + Shift
  • FindCtrl + F
  • Find nextF3
  • Find previousShift + F3
  • ReplaceCtrl + R
  • Find actionCtrl + Shift + A
  • Search by a symbol nameCtrl + Alt + Shift + N
  • Find classCtrl + N
  • Find file, instead of classCtrl + Shift + N
  • Find in pathCtrl + Shift + F
  • Open file structure pop-upCtrl + F12
  • Navigate between open editor tabsAlt + Right/Left
  • Jump to sourceCtrl + Enter
  • Open the current editor tab in a new windowShift + F4
  • Recently opened files pop-upCtrl + E
  • Recently edited files pop-upCtrl + Shift + E
  • Go to last edit locationCtrl + Shift + Backspace
  • Close active editor tabCtrl + F4
  • Return to editor window from a tool windowEsc
  • Hide active or last active tool windowShift + Esc
  • Go to lineCtrl + G
  • Open type hierarchyCtrl + H
  • Open method hierarchyCtrl + Shift + H
  • Open call hierarchyCtrl + Alt + H

Viewing Layouts

  • Zoom inCtrl + +
  • Zoom outCtrl + -
  • Fit to screenCtrl + 0
  • Actual sizeCtrl + Shift + 1

Layout Editor

  • Toggle between Design and Blueprint modesB
  • Toggle between Portrait and Landscaope modesO
  • Toggle devicesD
  • Force refreshR
  • Toggle render errors panelE
  • Delete constraintsDel
  • Zoom inCtrl + +
  • Zoom outCtrl + -
  • Zoom to fitCtrl + 0
  • Go to XMLCtrl + B
  • Select all componentsCtrl + A
  • Select multiple componentsShift + (click)

Navigation Editor

  • Zoom inCtrl + +
  • Zoom outCtrl + -
  • Zoom to fitCtrl + 0
  • Go to XMLCtrl + B
  • Toggle render errors panelE
  • Group into a nested graphCtrl + G
  • Cycle through destinationsTab
  • Select all destinationsCtrl + A
  • Select multiple destinationsCtrl + (click)

Writing Code

  • Generate code, e.g. getters, setters, constructors, new classAlt + Insert
  • Override methodsCtrl + O
  • Implement methodsCtrl + I
  • Surround with if...else, try...catch, etcCtrl + Alt + T
  • Delete line at caretCtrl + Y
  • Collapse the current code blockCtrl + -
  • Expand the current code blockCtrl + +
  • Collapse all code blocksCtrl + Shift + -
  • Expand all code blocksCtrl + Shift + +
  • Duplicate the current line or selectionCtrl + D
  • Basic code completionCtrl + Space
  • Smart code completion, filters the list of methods and variables by expected typeCtrl + Shift + Space
  • Complete statementCtrl + Shift + Enter
  • Quick documentation lookupCtrl + Q
  • Show parameters for selected methodCtrl + P
  • Go to declaration, directlyCtrl + B
  • Go to implementationsCtrl + Alt + B
  • Go to super-method or super-classCtrl + U
  • Open quick definition lookupCtrl + Shift + I
  • Toggle project tool window visibilityAlt + 1
  • Toggle bookmarkF11
  • Toggle bookmark with mnemonicCtrl + F11
  • Comment or uncomment with line commentCtrl + /
  • Comment or uncomment with block commentCtrl + Shift + /
  • Select successively increasing code blocksCtrl + W
  • Decrease current selection to previous stateCtrl + Shift + W
  • Move to code block startCtrl + [
  • Move to code block endCtrl + ]
  • Select to the code block startCtrl + Shift + [
  • Select to the code block endCtrl + Shift + ]
  • Delete to the end of a wordCtrl + Del
  • Delete to the start of a wordCtrl + Backspace
  • Optimize importsCtrl + Alt + O
  • Project quick fix, show intention actions and quick fixesAlt + Enter
  • Reformat codeCtrl + Alt + L
  • Auto-indent linesCtrl + Alt + I
  • Indent linesTab
  • Unindent linesShift + Tab
  • Smart line joinCtrl + Shift + J
  • Smart line splitCtrl + Enter
  • Start new lineShift + Enter
  • Next highlighted errorF2
  • Previous highlighted errorShift + F2

Build and Run

  • BuildCtrl + F9
  • Build and runShift + F10
  • Apply changes and restart activityCtrl + F10
  • Apply code changesCtrl + Alt + F10

Debugging

  • DebugShift + F9
  • Step overF8
  • Step intoF7
  • Smart step intoShift + F7
  • Step outShift + F8
  • Run to cursorAlt + F9
  • Evaluate expressionAlt + F8
  • Resume programF9
  • Toggle breakpointCtrl + F8
  • View breakpointsCtrl + Shift + F8

Refactoring

  • CopyF5
  • MoveF6
  • Safe deleteAlt + Del
  • RenameShift + F6
  • Change signatureCtrl + F6
  • InlineCtrl + Alt + N
  • Extract methodCtrl + Alt + M
  • Extract variableCtrl + Alt + V
  • Extract fieldCtrl + Alt + F
  • Extract constantCtrl + Alt + C
  • Extract parameterCtrl + Alt + P

Version Control

  • Commit project to VCSCtrl + K
  • Update project from VCSCtrl + T
  • View recent changesAlt + Shift + C
  • Open VCS pop-upAlt + `

Startup.detail.introduction

Comprehensive Shortcut Collection: Access a wide array of shortcuts categorized by platform, software, and device.

  1. Discover Shortcuts Easily: User-friendly navigation and search functionality allow users to quickly find the shortcuts they need.

  2. Submit Your Own Shortcuts: Share favorite shortcuts with the community for free, helping others save time and improve their workflow.

To use iloveshortcuts.com, users can simply browse through the categories, use the search feature, and click on the shortcuts to get detailed information and implementation tips. The platform is free to use, and users can also submit their own shortcuts to help others.

Additionally, the platform provides tips on how to maximize its use, including exploring the constantly updated list of shortcuts and taking advantage of the free submission feature. This allows users to find the best shortcuts for their tasks and contribute to the community.

In contrast, the provided text appears to be a page from the Android Developers website, which provides information on Android development, including Android Studio, a popular integrated development environment (IDE) for Android app development. The page discusses keyboard shortcuts in Android Studio, including tool windows, code completion, navigation, and default keymaps.