Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
4.2k views
Welcome To Ask or Share your Answers For Others

1 Answer

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

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...