Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ .editorconfig autoformat breaks ktlint #762

Closed
bonkf opened this issue Jun 3, 2020 · 2 comments
Closed

IntelliJ .editorconfig autoformat breaks ktlint #762

bonkf opened this issue Jun 3, 2020 · 2 comments
Labels

Comments

@bonkf
Copy link

bonkf commented Jun 3, 2020

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
Copy link
Collaborator

Tapchicoma commented Jun 3, 2020

Yes, this is IDEA bug, see discussion in .editorconfig spec regarding this: editorconfig/editorconfig#148

@romtsn
Copy link
Collaborator

romtsn commented Aug 25, 2020

Not sure if we can do something about that for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants