Tom-Bonnike / vscode-formatting-toggle

A VS Code extension that allows you to toggle the formatter (Prettier, Beautify, …) ON and OFF with a simple click.
https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle
MIT License
60 stars 13 forks source link

Always toggle to true except for formatOnType #17

Closed Tom-Bonnike closed 6 years ago

Tom-Bonnike commented 6 years ago

If all formatting settings were set to false when VSCode was launched, they would never get toggled on. This PR ensures that formatOnPaste and formatOnSave are always toggled on. formatOnType is only toggled on if it was enabled as part of the user’s config beforehand.