Does the Kotlin plugin in IDEA supports the feature to pass in all the method’s parameters to another method, that is called? I think it works for Java, but not sure it’s available for Kotlin. For example:
Copy code
fun foo(a: Int, b: String, c: Boolean) = /*...*/
fun bar(a: Int, b: String, c: Boolean) {
/* some work */
foo( // I press the ctrl+space here to show the code completion. Ideally would be to give an option to pass it to foo() all arguments of the bar()
}
e
Eugen Martynov
12/28/2021, 4:39 PM
If you start typing a, I think it might suggest all params. At least it works for the super constructors. Here it might be harder for compiler to guess identity with the functions' params.
a
Alexey Belkov [JB]
01/17/2022, 10:25 AM
I believe Kotlin plugin works like the Java plugin here. If you explicitly invoke code completion inside