Does the Kotlin plugin in IDEA supports the featur...
# intellij
v
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
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
I believe Kotlin plugin works like the Java plugin here. If you explicitly invoke code completion inside
foo(
, it suggests to insert "a, b, c" at once.