cwtools / cwtools-vscode

A VS Code extension providing language server support for paradox script files using cwtools
Other
88 stars 12 forks source link

Add setting to disable formatting on save #67

Closed maxice8 closed 1 year ago

maxice8 commented 2 years ago

I am currently exploring bugs in other people's mods and cwtools keeps formatting the whole file when I'm just modifying some small numbers and saving, it makes it harder to track changes with git.

tboby commented 2 years ago

cwtools-vscode shouldn't be triggering whole file formatting automatically, it just formats when VS Code tells it to format.

Have you enabled the setting globally for VS Code? If so, you might want to consider disabling it for now, or enabling it on a per workspace basis.

The setting id is editor.formatOnSave. File -> Preferences -> Settings, then search for "Editor: Format on save".

maxice8 commented 1 year ago

Thank you! I have disabled it for now.