Skip to content

Instantly share code, notes, and snippets.

@aviaryan
Forked from arriolac/Android Studio Tricks.md
Created January 17, 2016 10:03
Show Gist options
  • Save aviaryan/a8ec6061e6259c5cf465 to your computer and use it in GitHub Desktop.
Save aviaryan/a8ec6061e6259c5cf465 to your computer and use it in GitHub Desktop.
Some Android Studio Tricks.

Android Studio Notes

Keyboard Shortcuts for Mac

  • SHIFT + F6 to refactor methods, classes, and variable names
  • CTRL + O to override methods
  • COMMAND + N
    • Generate getter, setter, and constructor method for a class (when in editor pane)
    • Generate new class, files, package, etc. (when in project pane)
  • CTRL+ALT+O to auto-import
  • OPTION + COMMAND + L to reformat code
  • CMD+B opens the layout file from a .java file
  • CTRL+SHIFT+SPACE to see documentation
  • OPTION + COMMAND + O to search by symbol name
  • CTRL + P shows parameters for selected method
  • OPTION + COMMAND + B to find implementations of a class (class hierarchy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment