3

My problem is not present while editing a file, like here: Spaces to tabs in Visual Studio Code

VSC converts all tabs to spaces when I save the file. How could I stop that stupid behavior?

This are my actual user settings:

{ "editor.insertSpaces": false, "editor.detectIndentation": false } 

Further informations:

 "editor.formatOnSave": false 
2
  • 1
    Do you have extensions installed / what file type does this happen with? Are those all your settings, or do you also have editor.formatOnSave enabled for instance? Commented Feb 13, 2017 at 14:53
  • That's the hint! Thank you. I'll update my Question Commented Feb 14, 2017 at 13:41

2 Answers 2

5

Wish I understood more about what's happening here, but in my case, what finally worked (for now) was unchecking "Editor: Insert Spaces" in my user prefs. Without this, disabling Save on Format didn't seem to help. ¯\_(ツ)_/¯

screenshot of the "Editor: Insert Spaces" setting, unchecked

Sign up to request clarification or add additional context in comments.

Comments

2

I had an extension which overrides the default behaviour:

https://marketplace.visualstudio.com/items?itemName=lonefy.vscode-JS-CSS-HTML-formatter

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.