Reputation: 1999
There is kotlin file by default, but I want to make a class as default kind. Just like in Java. I hate to swith it to class every time I want to make new class file.
Upvotes: 13
Views: 2875
Reputation: 11
update Kotlin File
to kotlin Class
contents,Kotlin File
tab we don't use it most of the time.
Than. new Kotlin File tab = new Kotlin Class tab.
It's stupid, but it works for me.This saves time in choosing Class by arrow.
Upvotes: 1
Reputation: 2089
I don't think this is possible. You can, however, create own file template (preferences -> editor -> file and code templates)
Now just select the package in Project view and use New... action (not Kotlin File/Class that you used before). Popup will appear where you can type characters to select desired template
Upvotes: 2