suusan2go / kotlin-fill-class

Intellij plugin that provides intention action for empty constructor

Home Page:https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Fill class constructor (only mandatory values)

theapache64 opened this issue · comments

Option to fill mandatory values (values doesn't have default arg)

Is the Do not fill default arguments option different from what you want?
Enabling the option yields the following results.

fun foo(s: String, i: Int = 0)

fun main() {
    foo(<caret>)
}

fun foo(s: String, i: Int = 0)

fun main() {
    foo(s = "")
}

I am wondering if I should rename the option because I sometimes get confused with it and the Fill arguments without default values option.