Closed tristanlabelle closed 2 weeks ago
@tristanlabelle Are you on the latest version? Works fine for me on 1.7.0.
If you hit \n
and the new line is not an empty line, SwiftFormat should be triggered.
@MahdiBM did you mean 1.6.9, which seems to be the latest version? Currently, formatting on Enter isn't working for me either on Windows in version 1.6.9.
Hmm I thought I saw a higher version. Maybe you need to enable the "format on type" somehow?
Ah i had manually installed a version 1.7.0 locally with my own changes. Regardless, when I enable format-on-type:
"editor.formatOnType": true
it just works for me.
"editor.formatOnType": true
was missing. Thanks.
Perhaps there should be some documentation for that, that we add 🙂.
I'm not getting formatting when hitting enter (we're currently registering it for "\n" characters), nor after modifying it to "}", when I type that character.