How can i write ECMAScript code in Visual Studio Code ?? I tried writing jsconfig.json but am not sure about how to run that file. I even tried changing the tasks.json but even that is not helping.
Thanks In Advance,
Amala
Update April 2016:
As of the latest version of visual studio code (1.0 at time of writing)there should be no need for jsconfig.json to enable ES6 now.
Previous Answer:


{
"compilerOptions": {
"target": "ES6"
}
}
Now when you create a JS file, you'll get IntelliSense and ES6 code validation:

You can find out more about ES6 support from the VSCode Blog
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With