How to activate ES6 in Visual Studio Code

I’ve been looking for this answer for several weeks. Here is how to do it.

  1. Go to File > Preferences > Settings (or press Ctrl + ,)
  2. Add the following code in the USER SETTINGS tab
    "jshint.options": {
       "esversion": 6
    }

I have JSHint installed, if you don’t, you can install it from Visual Studio Code directly.

Sources

  • https://stackoverflow.com/questions/29953293/is-there-a-way-to-turn-on-es6-es7-syntax-support-in-vscode

Leave a Comment

Your email address will not be published. Required fields are marked *