For every typescript file visual studio code uses an auto indentation of 8 spaces. This is a bit too much for my taste but I can\'t find where to change it.
Maybe it
I wanted to change the indentation of my existing HTML file from 4 spaces to 2 spaces.
I clicked the 'Spaces: 4' button in the status bar and changed them to two in the next dialog box.
I use 'vim' extension. I don't how to re-indent without vim
To re-indent my current file, I used this:
gg
=
G
The Problem of auto deintending is caused due to a checkbox being active in the settings of VSCode. Follow these steps:
goto preferences
goto settings
search 'editor:trim auto whitespace'
Uncheck The box