The Atom prettier integration allows you to tap the prettier notice on the status bar to temporarily enable/disable formatting-on-save. I find it very useful when editing vendored files inside a workspace.
I am happy to play around with an implementation of this as a PR, but before I did I wanted to check to see if it would be something that makes sense and you would be interested in it?
I think such a feature should be another extension. It would allow to toggle any formatter (which relies on formatOnSave) for such use case.
Toggling formatOnSave settings should do the trick. wokspaceConfiguration.update
For prettier, a '.prettierignore' should be provided soon. prettier/prettier#2412
This prevents the formatting of specified files.
Great call, thanks for the advice.
Hey, I just published that extension: https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle
It allows you to toggle the formatters using a status bar action or a command :)
@Tom-Bonnike life saver, thanks!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Hey, I just published that extension: https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle
It allows you to toggle the formatters using a status bar action or a command :)