suusan2go / kotlin-fill-class

Intellij plugin that provides intention action for empty constructor
https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class
MIT License
268 stars 31 forks source link

[Feature] Fill class constructor (only mandatory values) #103

Open theapache64 opened 1 year ago

theapache64 commented 1 year ago

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

oboenikui commented 1 year ago

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.