suusan2go / kotlin-fill-class

Intellij plugin that provides intention action for empty constructor

Home Page:https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a whitespace after "="

saket opened this issue · comments

Thanks for maintaining this plugin @suusan2go! Would you be able to add a whitespace character after each = when filling parameters? This will save me an auto-format after performing a fill.

missing.whitespaces.mp4

@saket
Due to IDEA specifications, this does not appear to be possible.
If the plugin rewrites code through the Inspection, IDEA automatically reformats the code. This means that if the plugin outputs code with spaces, they will be erased automatically.
As a workaround, disable the Fill arguments without default values option and have the plugin output dummy default values, so the code is error-free and the formatter will automatically insert spaces.