0
The problem was occurring because of the extension: JS-CSS-HTML Formatter.
So the solution was to edit the file formatter.json
and set the property onSave
for false
.
To do this, I followed the steps:
1 - Press CTRL+SHIFT+P
and type Formatter:
2 - Change property value onSave
for false
:
For the change to take effect, you need to restart Visual Studio Code.
That answer of Stack Overflow in English helped me solve the problem.