Home > Enterprise >  Visual Studio Code is changing HTML after saving (React)
Visual Studio Code is changing HTML after saving (React)

Time:02-11

I started to learn react. A few minutes later messed up. I was looking for a setting and somehow I come where else where i selected a different choice(something like NodeJS)...now my problem is:

First Image

enter image description here

Second Image

enter image description here

First image is what I wrote. Second image is what it became after saving(CTRL S).

Third Image enter image description here This third image is the changed original template...

I tried to reinstall VS Code and deleting the settings(user/json) file nothing has changed. Does anyone know how to fix this problem.

Any help is appreciated :P

CodePudding user response:

I got that error too try renaming js files to jsx or

CodePudding user response:

their is different formatter for react. but for instant fix just disable auto formating on save from vscode setting.

enter image description here

  • Related