Tuesday, May 15, 2018

another place to try to turn off autoformatting in Visual Studio Code

There may be a ".vscode" folder in the root of your source code with a settings.json file in it containing:

{
   "editor.formatOnSave": true,
   "workbench.editor.enablePreview": false
}

 
 

You will want to set the true above to false. Also, in case the file contains a different setting for the size of tabs, you will want to take that setting out of the JSON object altogether. Specifically "editor.tabSize": 2 should go away.

No comments:

Post a Comment