A selection of templates for use within Android Studio (or IntelliJ), focusing on Kotlin and Android.
- In Android Studio go to Preferences -> Editor -> File and Code Templates
- Select desired scheme:
- Default (global template)
- Project (current open project - can be shared via Git)
- Open File tab
- Click '+'
- Enter name and extension (likely
kt
) - Copy template contents from this repository
- Paste template contents into Android Studio
- Click 'Apply' or 'OK'
- Enjoy. 🚀
- Clone the repository, or download a copy of latest master branch commit.
- Copy the contents of fileTemplates
- Place into
PROJECT_DIR/.idea/fileTemplates/
- Enjoy. 🚀
An abstract module for Dagger that can use @Binds and Dagger Android @ContributesAndroidInjector.
An object module for Dagger to provide regular (non-component dependencies).
Create a basic Kotlin data class really quickly.
If you notice any typing mistakes or errors in the templates, then please feel free to let me know with a PR.