IntelliJ .editorconfig autoformat breaks ktlint
bonkf opened this issue · 2 comments
bonkf commented
I'm opening another issue for #555, it's still broken with 0.37.0.
IntelliJ still inserts a space changing [*.{kt,kts}]
to [*.{kt, kts}]
. I think this might actually be an IntelliJ bug since in this issue somebody pointed out that kt, kts
is semantically different from kt,kts
.
I have opened an IntelliJ YouTrack issue.
A possible workaround is to go to Preferences > Editor > Code Style > EditorConfig > Spaces and unset the After comma
option.
Tapchicoma commented
Yes, this is IDEA bug, see discussion in .editorconfig
spec regarding this: editorconfig/editorconfig#148
romtsn commented
Not sure if we can do something about that for now