DeveloperUtils / kotlin-function-arguments-helper

Intellij plugin that provides intention action for function calls
https://plugins.jetbrains.com/plugin/14168-kotlin-function-arguments-helper
Apache License 2.0
15 stars 6 forks source link

Feature: Add/Respect option to use trailing comma #8

Open WorkingDevel opened 3 years ago

WorkingDevel commented 3 years ago

Kotlin 1.4 supports trailing commas. They can be enabled in Idea's Settings->Editor->Code Style->Kotlin->Other.

It would be great if the plugin would respect the setting and generate trailing comma, so instead:

User(
  name = "",
  phone = "",
  address = ""
)

it would generate

User(
  name = "",
  phone = "",
  address = "",
)
WorkingDevel commented 3 years ago

You can add trailing comma without option. See here:

https://github.com/suusan2go/kotlin-fill-class/issues/43#issuecomment-777088870