I spend on average 8 hours a day using Intellij and, over the years I created quite a collection of useful plugins. This is the first article of a series where I will present all the plugins I use every day 😄
Kotlin Fill Class
One of the Kotlin tools I use every day are data classes and I find myself constantly putting in constructor arguments:
![](https://ivanmorgillo.com/wp-content/uploads/2020/06/image-1.png)
Kotlin Fill Class plugin helps a lot with this. This plugin by Kenta Suzuki can be found here and the source code is available on Github. You can install it from Intellij/AndroidStudio Preferences (Cmd + ,) as usual:
![](https://ivanmorgillo.com/wp-content/uploads/2020/06/image-4.png)
The basic idea is that you get a new menu item in the “Alt+Enter” menu:
![](https://ivanmorgillo.com/wp-content/uploads/2020/06/image-2.png)
Once you hit Enter:
![](https://ivanmorgillo.com/wp-content/uploads/2020/06/image-3.png)
BAM! 🤯 You get all the arguments filled in, named and, if they are simple enough, you also get placeholders 😍
It also works on functions:
![](https://ivanmorgillo.com/wp-content/uploads/2020/06/image-5.png)
Once you hit Enter, you get
![](https://ivanmorgillo.com/wp-content/uploads/2020/06/image-6.png)
It seems a tiny thing, but in my experience tiny things add up and this definitely made daily routines a bit more pleasant 😄
0 responses to “My IntelliJ Plugin Collection – Kotlin Fill class”