An advice which is frequently heared to improve his productivity is to master his IDE. I list in this article a set a frequently used features which is useful to know and I also give ways to develop habits on its use.
Know the features of the IDE
Make a tour of the menu entries, try, use help if needed.
A selection of frequently used features :
- Live Templates : write methods or loops from an abbreviation.
Eg.: fbc + Enter -> findViewById with cast
- Generates (Right clic > Generate) : generate automatically the code of your constructors, getters and setters, equals and hashcode, etc.
- Refactorings (Right Clic > Refactor) : refactor your code easily : renaming, move but also extraction of variable, method, etc. from existing code.
- Assistants : give you informations on your code : quick fix, quick documentation, parameters infos, etc.
Choose the features you want to master first
Begin with some, master them, then add new ones.
Use the Find Action (Ctrl + Shift + A) to get access to the IDE features
The search input is autocompleatable, you don’t have to memorize the whole feature name.
It is a first step to the learning of the shortcuts which you’ll remember progressively, better begin by create the usage habits on the features.
Plan a time in the week to review your usage
Know and understand the features, that’s good. But you also have to ensure of their use over time.
Use your electronic agenda to set up a task in the week (eg : friday afternoon) to review your goals.
Use the Productivity Guide for the review
(Help > Productivity Guide)
The Productivity Guide gives you usage statistics of the different productivity features of the IDE : last use and usage number. These are grouped by type : Navigation, Refactoring, Code Completion, etc.
You also have a usage guide of the feature with the stat.
Finally, the guide also permit you to quantify the gain on your productivity : characters typing saved, corrected bugs, etc.
Learn the shortcuts
Print a Cheat Sheet of the shortcuts, Android Studio gives one with default shortcuts : Help > Default Keymap Reference
Use the Key Promoter plugin which show you automatically the shortcuts for actions you make with the mouse (customisable threshold). If you estimate that the display is too violent or tidy, you can limit its use to half a day per week.
Continue to learn
Choose the next set of features to master, the productivity guide permits you to have a quick overview of the different productivity features proposed and gives you a little usage doc.