DEV Community

Visakh Vijayan
Visakh Vijayan

Posted on

BUG: Making vs code tab size to 4 by default

Ok. So this is something that bugs me a lot. The VS Code reverts back to spaces everytime I open a new file.

To solve this you have to switch on the Detect Indentation under Settings and then you have to open settings.json for the language you are coding in and use these two options -

"editor.tabSize": 4,
"editor.insertSpaces": false,
Enter fullscreen mode Exit fullscreen mode

That should do the trick.

Top comments (0)