When I Write down a HTML tag,like:
···
<div></div>
···
And press Enter between ><, VS Code always auto add new line and indent, then the result is:
···
<div>
(← here have an indent)
</div>
···
How can I prevent VS Code from auto-indenting?
When you are in VSC, go to...
File > Preferences > Settings > Text Editor
Scroll down until you find:
Auto Indent and change full to none
There are some operations about that you maybe want to know.