Is there a way to turn on ES6/ES7 syntax support in vscode?

前端 未结 7 1116
既然无缘
既然无缘 2020-12-02 14:51

Edit 3: Starting in version 0.4.0, ES6 syntax can be turned on by adding a jsconfig.json file to the project folder with the following contents:

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 15:52

    This link helped a lot. Adding the jsconfig.json file to the the project didn't help much or rather it's not the best solution. Go to file > preferences > settings. In the settings.json file add this line:

    "jshint.options": { "esversion": 6 }
    

提交回复
热议问题