Vscode problem adding space in code

Asked

Viewed 46 times

-1

Hello, everybody.

When working with HTML every time a change is made to head Vscode automatically adds a space before closing all double quotes in the body. Staying as in this example: input type="checkbox " id="ps4 " name="ps4 " value="ps4 "

This situation ends up upsetting the presentation of the site in the browser (Firefox, in this case). To solve, I have to take the spaces, one by one. Why does this happen? And what would be the best way to solve?

Grateful.

  • Probably you have installed some code formatting extension, you can disable it or read in its documentation if there is any config about it

2 answers

0

Oops, you can do it like this, on settings.json of vscode, you put these settings:

"editor.formatOnSave": false,
"editor.insertSpaces": false,

Probably going to solve your problem, hugs!

-1

Mo my case uninstalled the extension: "JS-CSS-HTML Formatter" You can disable it if you are not using it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.