我尝试在VS代码中创建一个React项目。如下所示,当我尝试用HTML标签保存index.js时,VS代码会打断我的标签,并在单词和括号之间插入空格。我找不到如何修复它的…
// this is before I safe the project
ReactDOM.render( <div> Hello World! </div>, document.getElementById('root'))
// this is after I safe the project
ReactDOM.render( < div > Hello World! < /div>, document.getElementById('root'))发布于 2019-03-10 23:48:41
以下任一项:
在用户/工作区设置中,将所有.js文件扩展名更改为文件关联:
"files.associations": {
    "*.js": "javascriptreact"
  }https://stackoverflow.com/questions/55087875
复制相似问题