Android Studio is Google's official integrated development environment (IDE) for Android app development, built on JetBrains' IntelliJ IDEA platform. It provides comprehensive tools for building, testing, and debugging Android applications across phones, tablets, wearables, XR headsets, and other devices. Mastering its keyboard shortcuts, debugging tools, profiling capabilities, and AI-powered features dramatically accelerates development velocity β the difference between hunting through menus and executing commands instantly can save hours weekly. The key mental model: Android Studio is a persistent workspace where navigation, refactoring, AI assistance, and inspection tools work together to minimize context switching and maximize flow state; invest time learning its keyboard-first, AI-augmented workflow and you'll write code faster, debug smarter, and ship more reliable apps.
What This Cheat Sheet Covers
This topic spans 22 focused tables and 296 indexed concepts, 139 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Essential Keyboard Shortcuts
These are the shortcuts that pay back immediately β the ones that replace menu-hunting with muscle memory. Learn the top dozen cold and the rest will follow naturally as you encounter them in context.
| Shortcut | Example | Description | |
|---|---|---|---|
Double Shift (press Shift twice) | Opens universal search dialog for files, classes, symbols, actions, and settings β the single most important shortcut for fast navigation | ||
Alt+Enter (Win) / β₯β (Mac) | Shows context-aware intention actions and quick fixes for errors, warnings, and code improvements at cursor position | ||
Ctrl+Alt+L (Win) / ββ₯L (Mac) | Reformats selected code or entire file according to configured code style rules β ensures consistent formatting across team | ||
Ctrl+Space (Win/Mac) | Triggers basic code completion showing available methods, variables, and keywords based on context | ||
Ctrl+Shift+Space (Win/Mac) | Shows type-matching suggestions filtered by expected type β more accurate than basic completion for complex expressions | ||
Ctrl+Shift+Enter (Win) / ββ§β© (Mac) | Completes the current statement adding missing parentheses, braces, and semicolons β instantly closes open expressions | ||
Shift+F10 (Win) / ^R (Mac) | Builds and deploys app to selected device or emulator β fastest way to test changes on physical/virtual device | ||
Shift+F9 (Win) / ^D (Mac) | Launches app in debug mode with debugger attached β stops at breakpoints and allows step-through debugging | ||
Ctrl+F9 (Win) / βF9 (Mac) | Compiles without running β useful for checking build errors quickly without deploying to device | ||
Ctrl+Shift+A (Win) / ββ§A (Mac) | Searches for any IDE action or menu item by name β great escape hatch when a shortcut is unknown | ||
Alt+Insert (Win) / βN (Mac) | Opens generation menu for constructors, getters/setters, override methods, equals/hashCode and other boilerplate code | ||
Ctrl+Alt+O (Win) / ^β₯O (Mac) | Removes unused imports and sorts remaining ones alphabetically β keeps import section clean and organized | ||
Ctrl+Shift+F (Win) / ββ§F (Mac) | Searches for text pattern across entire project or specified scope with regex support and preview | ||
Ctrl+/ (Win/Mac) | Toggles line comment ( //) on current line or selected lines β essential for quick code disabling | ||
Ctrl+D (Win) / βD (Mac) | Duplicates current line or selection below cursor position β avoids copy-paste for repetitive code | ||
Ctrl+Y (Win) / ββ« (Mac) | Deletes entire line at cursor without selecting β faster than selecting and deleting manually | ||
Ctrl+B (Win) / βB (Mac) | Navigates to definition of class, method, or variable at cursor β fundamental for code exploration | ||
Ctrl+E (Win) / βE (Mac) | Shows popup of recently opened files with search filter β quick way to jump between active files | ||
F9 (Win) / ββ₯R (Mac) | Continues execution until next breakpoint during debug session β use after inspecting state | ||
F2 / Shift+F2 | Jumps to next or previous highlighted error or warning in file β efficient error-fixing pass | ||
Ctrl+W (Win) / β₯β (Mac) | Intelligently expands selection to next syntactic element (word β expression β statement β method) | ||
Ctrl+Alt+T (Win) / ββ₯T (Mac) | Wraps selected code with try/catch, if/else, for loop, or other control structures from template menu | ||
Ctrl+Shift+/ (Win) / ββ§/ (Mac) | Toggles block comment ( /* */) around selection β useful for multi-line documentation or disabling code blocks | ||
Ctrl+S (Win) / βS (Mac) | Saves all modified files β Android Studio auto-saves but explicit save triggers file watchers | ||
Ctrl+Alt+S (Win) / β, (Mac) | Opens Settings / Preferences dialog β access all IDE configuration from one place | ||
Type logd + Tab β Log.d(TAG, "") | Expands custom code snippets from abbreviations β accelerates repetitive code patterns |