DocsLab

Android Studio Shortcuts

Essential shortcuts to boost your Android development productivity.

Android Studio Shortcuts

Mastering shortcuts in Android Studio will significantly speed up your development process. Here are some of the most useful ones:

General Navigation

  • Search Everywhere: Double Shift
  • Go to Class: Ctrl + N (Windows/Linux) / Cmd + O (Mac)
  • Go to File: Ctrl + Shift + N (Windows/Linux) / Cmd + Shift + O (Mac)
  • Recent Files: Ctrl + E (Windows/Linux) / Cmd + E (Mac)

Editing & Code Generation

  • Generate Code (Getters, Setters, Constructors): Alt + Insert (Windows/Linux) / Cmd + N (Mac)
  • Format Code: Ctrl + Alt + L (Windows/Linux) / Cmd + Option + L (Mac)
  • Show Intentions/Quick Fix: Alt + Enter (Windows/Linux) / Option + Enter (Mac)
  • Duplicate Line: Ctrl + D (Windows/Linux) / Cmd + D (Mac)

Refactoring

  • Rename: Shift + F6
  • Extract Method: Ctrl + Alt + M (Windows/Linux) / Cmd + Option + M (Mac)
  • Extract Variable: Ctrl + Alt + V (Windows/Linux) / Cmd + Option + V (Mac)

On this page