Shortcuts — Android

to make things little easier and faster..

Hari Prasad
2 min readNov 17, 2023

Run/ Debug App

  • Ctrl + R — Run
  • Ctrl + D — Debug
  • F7 — Step Into
  • F8 — Step Over
  • Opt + F8 — Evaluate Expressions While Debugging
  • Cmd+Shift+F8 — View breakpoints

Search Efficiently

  • Shift + Shift — Search everywhere
    Cmd + Shift + O — Search by File-Name
    Cmd + Shift + A — Search Actions
    Cmd + O — Search by Class-Name
    Cmd + Opt + O — Search by Symbol-Name (method/ field name)
  • Cmd + E — Recently opened files
    Cmd + Shift + E — Recently visited locations
  • Cmd + F — searches with the current file
    Cmd + Shift + F — lets you search in the path

Cursor Navigation

  • Cmd + [ or ] — Forward/ Back through cursor position history
    Cmd
    + Shift + Backspace — Return to the Last Edited Line
  • Cmd +or → — Move Cursor to the Start or End of Line
    Ctrl + Shift + ↑ — Move a Line Up or Down
  • Cmd + L — Go To Line Number

Edit Code

  • Opt + Backspace — Delete Word
  • Cmd + D or Backspace — Delete Line
  • Cmd + Shift + U — Toggle Case
  • Cmd + D — Duplicate current line
  • Cmd + / — Comment Out Code

Reformat Code

  • Cmd + Opt + M — Extract Method
  • Cmd + Opt + T — Enclose Statements
  • Cmd + Opt + L — Reformat Code
  • Shift + F6 — Refactor/rename
  • Ctrl + Opt + O — Optimizing imports

View More

  • Cmd + P — Show Parameters
  • Ctrl + J — Quick Documentation
  • Cmd + Click or Cmd + B — Go to Declaration

Suggestions

  • Cmd + Space — Code Completion
  • Opt + Enter — Apply Suggestions
  • Cmd + J — Live Template

Code Generation

  • Cmd + N — Lists out all the options available
  • Cmd + O — Shows methods you can override

Multi Cursors

  • Hold the Opt button and make selections

Others

  • Cmd + Shift + V — Clipboard History
  • Cmd + + or -— Collapse/Expand Code Blocks

Tool windows

  • Cmd + 1 — Project
  • Cmd + 6 — Logcat
  • Cmd + Shift + F12 —Hide All Tool Windows

Version control/local history

  • Cmd + 9 — Version Control
  • Cmd + 0 — Version Control Commit View
  • Ctrl + V — VCS Options
  • Opt + Shift + C — View recent changes

--

--