[英]Visual Studio Code is changing HTML after saving (React)
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:
我正在寻找一个设置,不知何故我来到了我选择不同选择的其他地方(比如NodeJS)......现在我的问题是:
First Image第一张图片
Second Image第二张图片
First image is what I wrote.第一张图是我写的。 Second image is what it became after saving(CTRL + S).
第二张图片是保存后的样子(CTRL + S)。
Third Image第三张图片
This third image is the changed original template...
这第三张图片是更改后的原始模板...
I tried to reinstall VS Code and deleting the settings(user/json) file nothing has changed.我尝试重新安装 VS Code 并删除设置(用户/json)文件,但没有任何改变。 Does anyone know how to fix this problem.
有谁知道如何解决这个问题。
Any help is appreciated :P任何帮助表示赞赏:P
On the status bar of VS Code, you would see the language that has been set automatically to your file where to find the language mode在 VS Code 的状态栏上,您会看到已自动设置到您的文件的语言,在哪里可以找到语言模式
click on the name of the language and it would take you to this section language mode单击语言的名称,它将带您进入此部分的语言模式
Type the language you want to use for that first and select it or You can select configure file association for '...' and type the language you want to use.(This changes the language forever unless you decide to change it)首先输入您要使用的语言并选择它,或者您可以选择为“...”配置文件关联并输入您要使用的语言。(除非您决定更改它,否则这将永远更改语言)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.