Whenever i enter click save my '.js ' file undergoes an indentation change . I have disabled beautify and prettier . Any other suggestion ? Here's the error that occured
2 Answers 2
It's definetly because of some Formatter being applied on codeActionsOnSave.
I see you got a notification in the bottom right from VS Code, often this informs you when linters collide.
Also check your settings.json of VS Code, found under Preferences> Settings> top right corner icon. It might be that there are some linters specified for specific files and also the codeActionsOnSave.
Alternatively you can create a .vscode folder in your root folder containing a settings.json that sets workspace specific rules that overwrite your VS Code settings for that workspace. E.g.
{
"editor.formatOnSave": false,
}
Comments
Check if you have installed any "Linters" on VS code. Here is the link if you want to know what are these: https://code.visualstudio.com/docs/languages/javascript#_linters
or Probably it is the formatting issue:
The javascript.format.* settings configure the built-in formatter. Or, if the built-in formatter is getting in the way, set "javascript.format.enable" to false to disable it. Link: https://code.visualstudio.com/docs/languages/javascript#_formatting
Comments
Explore related questions
See similar questions with these tags.
>Preferences: Open User Settings->Editor: Format on Save