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.



Leave a Comment

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