Welcome to Qi-U Community for programmer and developer-Open, Learning and Share

Categories

0 votes
568 views
in Technique[技术] by (31.9m points)

vscode如何分开配置react和vue?

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


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

Please log in or register to answer this question.

1 Answer

0 votes
by (31.9m points)

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

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Qi-U Community for programmer and developer-Open, Learning and Share

755k questions

547k answers

4 comments

86.4k users

...