Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

vscode如何分开配置react和vue?

在开发中即用到react又用到vue,但是vscode配置了vue,再开发react会有很多问题,他们的配置好像是互相冲突了,好矛盾,每次切换项目都的盲目改一通配置,也不知道哪个起的作用,现在vscode格式化又识别不了js中的jsx语法了,无语啊,如何分开配置呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

已解决:
在配置文件中增加如下配置:

"files.associations": {
    "*.js": "javascriptreact",// vue开发的话把这关闭
}

参考:https://blog.csdn.net/qq_3884...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...