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

Boosting our productivity in #AndroidDev

Boosting our productivity in #AndroidDev

Lightning talk about productivity in Android App Development.

It focuses in some Android Studio features, such as useful shortcuts, live templates, and some other tools.

Olmo Gallegos

May 11, 2017
Tweet

More Decks by Olmo Gallegos

Other Decks in Programming

Transcript

  1. Boosting our productivity in #AndroidDev Víctor Olmo Gallegos Hernández Olmo

    Gallegos @voghDev Using our very-best friend Mobile developer at AppAndWeb
  2. Structure • 1 m. Intro • 1 m. Motivation •

    4 m. Shortcuts • 4 m. Live templates • 1 m. Tools • 1 m. Bibliography 12 m. Total
  3. Boosting our productivity in #AndroidDev Víctor Olmo Gallegos Hernández Olmo

    Gallegos @voghDev Using our very-best friend Mobile developer at AppAndWeb
  4. Productivity “Levels” Three tiers of Productivity Insanity • Tier 0:

    Ctrl+C, Ctrl+V, Double Shift, Compile, Run • Tier 1: Plenty of shortcuts, some live templates also • Tier 2: Obsessed with Live templates, continuous improvement of the arsenal
  5. Shortcuts • “Search everywhere” > 2x Shift • “Refactor -

    Rename…” > Shift+F6 • “Show Intention Actions” > Alt+Enter • “Debug…” > Shift + F9 • “Debug” > Ctrl+Alt+D • “Run” > Shift+F10 • “Run…” > Shift+F11 • “Find Action” (similar to Search everywhere) > Ctrl+Shift+A • “Move Line Up / Move Line Down” > Alt+Shift+Up/Down • “Duplicate entire line” > Ctrl+D • “Parameter info” > Ctrl+P • “Add selection for next occurrence” aka God > Alt+J
  6. My shortcut & Live Template configuration https://github.com/voghDev/DevFestTalks/tree/master/settings Shortcuts (II) •

    “Navigate forward” / “Navigate Back” > Alt+Shift+Left / Alt+Shift+Right • “Navigate - Declaration” > Ctrl+B • “Extract style” > (2x) Ctrl+Shift+S • “Extract function” > Ctrl+Shift+M • “Generate Signed APK...” > (2x) Ctrl+Shift+G • “Settings...” > Ctrl+O • “Goto Next splitter” > Ctrl+Shift+K • “Split vertically” > Ctrl+Shift+9 • “Go to next error” > Ctrl+Shift+I • “Select next Tab in multi-editor file” > Ctrl+Shift+L
  7. My shortcut & Live Template configuration https://github.com/voghDev/DevFestTalks/tree/master/settings Shortcuts (III) •

    “Navigate to File” > Ctrl+Shift+H • “Close All” > Ctrl+Alt+M • “Close others” > Ctrl+Alt+N • “Reformat Code” > Ctrl+Shift+F • “New…” > Ctrl+N • “Find in path…” > Ctrl+Alt+F** • “Delete line” > Ctrl+Backspace • “Recent files” > Ctrl+E • “Compile” > Ctrl+F9 ** Used to have it in Ctrl+F but this produces a bug in Android Studio 3.3 or newer
  8. Live templates • “copy & paste” code snippets, with option

    to “fill the gaps” • Parametrizable • Apply functions to parameters
  9. Live templates • “copy & paste” code snippets, with option

    to “fill the gaps” • Parametrizable • Apply functions to parameters My Shortcuts and Live Templates:
  10. Live templates • “tv” (generic TextView declaration for XML layouts)

    • “Navigate - Declaration” • “Select next Tab in multi-editor file”
  11. Tools • No tabs - Talk “IntelliJ Tips and tricks”

    • SSD is mandatory • A wide-enough screen • Autoscroll to source • Autoscroll from source • “Project” perspective instead of “Android” • gradle daemon
  12. Bibliography “Weapons for boilerplate destruction” - Tomás Ruiz-López https://www.slideshare.net/everywaretech/weapons-for-boilerplate-destruction Live

    templates with groovy code using groovyScript() http://bartololeo.blogspot.com.es/2014/01/idea-12-how-to-write-live-template-with.html “mastering the New android studio” - Saúl Molinero https://www.youtube.com/watch?v=97XeLTxlEm8 “IntelliJ Idea tips and tricks” - Hadi Hariri https://blog.jetbrains.com/idea/2015/10/intellij-idea-tips-and-tricks/