Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make default kind of new kotlin file to class?

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.

enter image description here

like image 243
vdshb Avatar asked Apr 23 '18 18:04

vdshb


1 Answers

You can update File templates

update Kotlin File to kotlin Classcontents,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.

like image 160
hongbin dou Avatar answered Oct 04 '22 23:10

hongbin dou