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

前端 未结 7 1092
既然无缘
既然无缘 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:27

    It's quite easy, at the root of your project create a jsconfig.json file and write this object in it:

    {
        "compilerOptions": {
            "target": "ES6",
            "module": "commonjs"
        }
    }
    

提交回复
热议问题