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

Formatter #4

Open
jansorg opened this issue Jun 27, 2023 · 2 comments
Open

Formatter #4

jansorg opened this issue Jun 27, 2023 · 2 comments

Comments

@jansorg
Copy link
Owner

jansorg commented Jun 27, 2023

Request for Feedback

Please share your thoughts and ideas about the best experience for a Swift source code formatter.

@kvenn
Copy link

kvenn commented Sep 28, 2023

I would LOVE if this package supported formatting.

https://github.com/nicklockwood/SwiftFormat

That appears to be the easiest to achieve it. It would be great if there was a "format on save" option. As well as if IntelliJ picked it up as a formatter so I could run it on a full file.

I'd personally say the more opinionated the better. But would also make sense if it supported having an optional configuration file if you wanted to configure it: https://github.com/nicklockwood/SwiftFormat (or bonus - if you could do this from IntelliJ settings).

Apple has their own, which I'd be fine with as well: https://github.com/apple/swift-format

@kvenn
Copy link

kvenn commented Oct 31, 2023

I've set up the File Watcher plugin with SwiftFormat to automatically format my files on save.

image

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

No branches or pull requests

2 participants