Sarrus1 / sourcepawn-studio

VSCode extension for SourcePawn scripting
https://sarrus1.github.io/sourcepawn-studio/
MIT License
147 stars 23 forks source link

How to disable Formatter #284

Closed statebyte closed 1 year ago

statebyte commented 1 year ago

Basic informations

Question

I have checkbox Toggle the linter on or off, but doesn't see checkbox for Formatter. This is very important, because I have an old project on github, and when I start working with this repository, when I save the file, it shifts all the lines, which is not favorable for a commit.

How to disable this feature?

Sarrus1 commented 1 year ago

Hi,

You probably have "editor.formatOnSave" set to true somewhere in your global settings. Set it to false and you should be good to go. See this SO thread for more details.

The extension only provides a formatter for VSCode to use. The extension does not control whether the formatter is enabled or not.