-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling sort on save #56
Comments
^Second that, and thx @WORMSS for sharing the config. |
Maybe we can have a config for this extension to control the sort on save behavior? |
Just ran into this issue the other day, in a project that has I understand there's a tradeoff when adding new functionality to an extension:
(where X is a placeholder for any new feature that does an automatic thing) Since formatting on save is an intrusive operation, in the sense that it changes your code, I feel it would have been better to stick with opt-in, and play it safe. That is, if a user happened to have |
It seems that "sortJSON.excludedFiles": [
"package.json"
], |
Update: You should now use the following syntax rather than a boolean: "editor.codeActionsOnSave": {
"source.fixAll": "always",
"source.fixAll.sortJSON": "never"
}, |
It was more difficult that it needed to be to disable sorting on save.
I ended up having to manually write in the settings file
Was very annoying.. I am not sure when sort on save became a thing, but I had been blaming vscode for messing up my files for ages until my co-workers who also use vscode were reporting no such problems.
The text was updated successfully, but these errors were encountered: