Closed rafaelpedretti-toast closed 1 month ago
Hello! Thank you for that PR, I'll check it later that week
I've updated PR sligtly. Thank you for the conribution 🫡
Here is example how to configure swiftformat
in settings.json:
{
"[swift]": {
"editor.defaultFormatter": "sweetpad.sweetpad",
"editor.formatOnSave": true
},
"sweetpad.format.path": "swiftformat",
"sweetpad.format.args": ["--quiet", "${file}"],
}
I've updated PR sligtly. Thank you for the conribution 🫡
Here is example how to configure
swiftformat
in settings.json:{ "[swift]": { "editor.defaultFormatter": "sweetpad.sweetpad", "editor.formatOnSave": true }, "sweetpad.format.path": "swiftformat", "sweetpad.format.args": ["--quiet", "${file}"], }
Thanks! this is very interesting!
On my company we use
swiftformat
as our formatter and I felt the need to add this feature into the pluginThis PR introduces the ability for the user to use any formatter he wishes and pass any arguments to it.
The change still uses the default
swift-format
with default--in-place
argument