top of page

Essential Android Studio keyboard shortcuts

Writer's picture: Casper AndersenCasper Andersen

I made a quick overview of the most essential Android Studio keyboard shortcuts It is part of my series of productivity enhancement keyboard shortcuts for productivity software.


Essential Android Studio keyboard shortcuts




Android Studio keyboard shortcuts pdf

Click download pdf version to print.




General Shortcuts:

  • Open Settings/Preferences: Ctrl + Alt + S (Windows/Linux) or Cmd + , (Mac)

  • Search Everywhere: Shift twice

  • Quick Fix: Alt + Enter (Windows/Linux) or Option + Enter (Mac)

  • Undo: Ctrl + Z (Windows/Linux) or Cmd + Z (Mac)

  • Redo: Ctrl + Shift + Z (Windows/Linux) or Cmd + Shift + Z (Mac)

  • Run App: Shift + F10 (Windows/Linux) or Control + R (Mac)

  • Debug App: Shift + F9 (Windows/Linux) or Control + D (Mac)

  • Find in Project: Ctrl + Shift + F (Windows/Linux) or Cmd + Shift + F (Mac)

  • Replace in Project: Ctrl + Shift + R (Windows/Linux) or Cmd + Shift + R (Mac)

  • Reformat Code: Ctrl + Alt + L (Windows/Linux) or Cmd + Option + L (Mac)

  • Optimize Imports: Ctrl + Alt + O (Windows/Linux) or Cmd + Option + O (Mac)

  • Save All: Ctrl + S (Windows/Linux) or Cmd + S (Mac)


Code Navigation:

  • Go to Class/File/Symbol: Ctrl + N (Windows/Linux) or Cmd + O (Mac)

  • Go to Declaration: Ctrl + B or Ctrl + Click (Windows/Linux) or Cmd + B or Cmd + Click (Mac)

  • Go to Implementation: Ctrl + Alt + B (Windows/Linux) or Cmd + Option + B (Mac)

  • Navigate Back: Ctrl + Alt + Left (Windows/Linux) or Cmd + Option + Left (Mac)

  • Navigate Forward: Ctrl + Alt + Right (Windows/Linux) or Cmd + Option + Right (Mac)

  • Show Call Hierarchy: Ctrl + Alt + H (Windows/Linux) or Cmd + Option + H (Mac)


Code Editing:

  • Duplicate Line: Ctrl + D (Windows/Linux) or Cmd + D (Mac)

  • Delete Line: Ctrl + Y (Windows/Linux) or Cmd + Backspace (Mac)

  • Comment/Uncomment Line: Ctrl + / (Windows/Linux) or Cmd + / (Mac)

  • Block Comment/Uncomment: Ctrl + Shift + / (Windows/Linux) or Cmd + Option + / (Mac)

  • Move Line Up/Down: Alt + Shift + Up/Down (Windows/Linux) or Option + Shift + Up/Down (Mac)

  • Find and Replace: Ctrl + R (Windows/Linux) or Cmd + R (Mac)

  • Auto-Complete Code: Ctrl + Space (Windows/Linux) or Cmd + Space (Mac)


Build and Version Control:

  • Build Project: Ctrl + F9 (Windows/Linux) or Cmd + F9 (Mac)

  • View Build Output: Alt + 0 (Windows/Linux) or Cmd + 0 (Mac)

  • Commit Changes: Ctrl + K (Windows/Linux) or Cmd + K (Mac)

  • Push Changes: Ctrl + Shift + K (Windows/Linux) or Cmd + Shift + K (Mac)

  • Open Version Control: Alt + 9 (Windows/Linux) or Cmd + 9 (Mac)


UI Designer:

  • Toggle Design/Code View: Alt + Shift + Left/Right (Windows/Linux) or Cmd + Option + Left/Right(Mac)

  • Zoom In/Out: Ctrl + Plus/Minus (Windows/Linux) or Cmd + Plus/Minus (Mac)

  • Run Layout Inspector: Shift + I


Debugging:

  • Toggle Breakpoint: Ctrl + F8 (Windows/Linux) or Cmd + F8 (Mac)

  • Step Over: F8

  • Step Into: F7

  • Step Out: Shift + F8

  • Resume Program: F9


Mini review Logitech MX Keys S Wireless Keyboard the best keyboard I ever owned here.

6 views0 comments

Recent Posts

See All

Comentários


bottom of page