Visual Studio Code ♥ ES6
Thanks to the more expressive syntax of ES6 modules, VS Code and can now reliably perform operations like rename, IntelliSense, go to declaration, and find references not only inside files, but also across the whole project.
Say goodbye to ///-references
And “Yes” – you get IntelliSense et al when editing jsconfig.json, and “Yes Yes” – we will support glob patterns in the files-sections soon. And btw – jsconfig is a cousin of tsconfig and despite it being a subset today, expect them to become more and more similar in the future.
To manage the d.ts files you can use tsd same as before.
Run Babel inside VS Code
VS Code and the console are friends! They bond using tasks.json which allows you integrate command line tools into VS Code. The snippet below is all you need to run Babel on each file change (F1 > Tasks: Configure Task Runner).
Once in place you can start babel with the ‘F1 > Tasks: Run Build Task’ gesture and it will compile all files from the src-directory into the lib-directory.
Eager to try this at home? Update to latest and greatest and run these commands before you open the folder in VS Code:
This sample omits the “files” property in the jsconfig.json file since all files including the d.ts files are contained in the ‘src’ folder.
We are not done…
Johannes Rieken – VS Code Developer