bod
10/22/2024, 10:51 AMfun f(
a: Int,
b: Int
) {
}
val a = f(
1,
2
)
After:
fun f(
a: Int,
b: Int, // \o/
) {
}
val a = f(
1,
2 // :(
)
wasyl
10/22/2024, 1:46 PMbod
10/22/2024, 1:51 PMDavid Kubecka
10/22/2024, 1:54 PMDavid Kubecka
10/22/2024, 1:54 PMbod
10/22/2024, 1:56 PMDaniel Pitts
10/22/2024, 2:35 PM.editorconfig
has been the most consistent way I've seen.bod
10/22/2024, 2:43 PMDaniel Pitts
10/22/2024, 3:18 PMDaniel Pitts
10/22/2024, 3:19 PMij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = false
bod
10/22/2024, 3:19 PMij_kotlin_allow_trailing_comma_on_call_site
looks promising!Daniel Pitts
10/22/2024, 3:20 PM.editorconfig
file, and put in [*.kt]
, you can then use intellij's "generate" hotkey (⌘N on Mac) and it will give you the open to create all of the possible keys that intellij knows about.Daniel Pitts
10/22/2024, 3:21 PMbod
10/22/2024, 3:21 PMbod
10/22/2024, 3:21 PMwasyl
10/22/2024, 4:00 PMij
and/or kt
and you'll see possible options. But fwiw editorconfig is pretty broken as well ☹️bod
10/22/2024, 6:00 PM.editorconfig
file and put this inside:
[*.kt]
ij_kotlin_allow_trailing_comma_on_call_site = true
then reopened my project, now cmd+alt+L adds the sweet commas 🎉
Thanks all 🙏