Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Studio Tips

Android Studio Tips

Demonstrate OSX key bindings for Android Studio

Richard Cirerol

August 16, 2016
Tweet

More Decks by Richard Cirerol

Other Decks in Programming

Transcript

  1. Android Studio Tips Or how to stop using the mouse

    while developing Android Studio Tips, Richard Cirerol (@codeprogression)
  2. Key Promoter Plugin Let's you know when you could have

    used a shortcut. Android Studio Tips, Richard Cirerol (@codeprogression)
  3. Distraction Free Mode • Removes almost all the chrome of

    Android Studio • Available in the View menu And yes, I created a shortcut (⌘⇧P,D) Android Studio Tips, Richard Cirerol (@codeprogression)
  4. Find Action ⌘⇧A For when you can't remember a shortcut

    Android Studio Tips, Richard Cirerol (@codeprogression)
  5. You can always add a key binding that doesn't exist.

    Android Studio Tips, Richard Cirerol (@codeprogression)
  6. Find Results Window (⌘3) Only shows up if you perform

    a compatible find operation • ⌘⇧F: Find in files • ⌥F7: Find usages Android Studio Tips, Richard Cirerol (@codeprogression)
  7. Run Window (⌘4) Only shows up after running the application

    • ^R: Run current configuration • ^⇧R: Run configuration under cursor • ^⌥R: Run configuration dialog • ^⌘R: Clean and run configuration • ⌘F9: Make project (does not run) Android Studio Tips, Richard Cirerol (@codeprogression)
  8. Debug Window (⌘5) Only shows up after debugging the application

    - ^D: Run current configuration - ^⇧D: Run configuration under cursor - ^⌥D: Run configuration dialog Android Studio Tips, Richard Cirerol (@codeprogression)
  9. Android Monitor Window (⌘6) • Logcat • Memory monitor •

    CPU monitor • Network monitor Android Studio Tips, Richard Cirerol (@codeprogression)
  10. To return to editor, hit ⎋ (esc) Android Studio Tips,

    Richard Cirerol (@codeprogression)
  11. Terminal (⌥F12) • ⎋ does not return to editor •

    ⌥F12 to close the terminal window Android Studio Tips, Richard Cirerol (@codeprogression)
  12. Editing • ^Space: Basic code completion • ^⌥Space: Smart code

    completion • ⌘⇧㾑: Complete statement Android Studio Tips, Richard Cirerol (@codeprogression)
  13. Editing • ⌘⇧V: Paste from buffers • ^⌥Space: Smart code

    completion • ⌘D: Duplicate current line • ⌘⌫: Delete current line Android Studio Tips, Richard Cirerol (@codeprogression)
  14. Editing • ⌥↑: Increase selection • ⌥↓: Decrease selection •

    ⌘/: Comment/uncomment with line comment • ⌘⌥/: Comment/uncomment with block comment Android Studio Tips, Richard Cirerol (@codeprogression)
  15. Search/Replace • ⌘F: Find in current files • ⌘⇧F: Find

    in path • ⌘R: Replace in current files • ⌘⇧F: Replace in path • ⌘G: Find next • ⌘⇧G: Find previous Android Studio Tips, Richard Cirerol (@codeprogression)
  16. Navigation • ⌘⌥←: Navigate back • ⌘⌥→: Navigate forward •

    ⌘⇧⌫: Go to last edit point Android Studio Tips, Richard Cirerol (@codeprogression)
  17. Navigation • ⌘B: Go to declaration • ⌘⌥B: Go to

    implementation • ⌘U: Go to super Android Studio Tips, Richard Cirerol (@codeprogression)
  18. Navigation • F2: Next error • ⇧F2: Previous error Android

    Studio Tips, Richard Cirerol (@codeprogression)
  19. Refactoring • F6: Move • ⇧F6: Rename • ⌘F6: Change

    signature Android Studio Tips, Richard Cirerol (@codeprogression)
  20. Refactoring • ⌘⌥M: Exract method • ⌘⌥V: Extract variable •

    ⌘⌥C: Extract constant • ⌘⌥F: Extract field • ⌘⌥P: Extract parameter Android Studio Tips, Richard Cirerol (@codeprogression)
  21. Live Templates • itar: Iterate through an array • iter:

    Iterate through an iterable • parc: Add parcelable methods to class Android Studio Tips, Richard Cirerol (@codeprogression)