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

Categories

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

vs code开发react如何配置

准备用vscode做react开发,该如何配置呢?
需要支持以下功能:

  1. ES6+语法
  2. 支持jsx文件
  3. 格式化

目前有以下问题:

  1. 格式化触发,代码就乱了
  2. ES6+关键字警告

谢谢!


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

1 Answer

0 votes
by (71.8m points)

我没有审错题目吧?

开发react?

VS Code内置对Javascript支持,包括ES6语法和React JSX。
也内置了针对Javascript的格式化 Shift+Alt+F
但是推荐用prettier-Code formatter格式化和EditorConfig for vs code进行规范


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...