Visual Code for Typescript: Configuration, Troubleshooting and General Tips

Last updated:

WIP Alert This is a work in progress. Current information is correct but more content will probably be added in the future.

Unless otherwise stated, solutions posted here relate to a Debian-based (Ubuntu) machine, on VS Code Version 1.5.2

Configuration

There are a couple of configuration files that affect how your IDE will work:

Supposing you have a Typescript project under myProjectRoot

Default Settings:

This is not a file per se, but the default configurations VS Code uses. To view them, hit Ctrl + P then type "DefaultSettings" and then hit enter.

~/.config/Code/User/settings.json

configs here affect all VS Code projects in your machine

myProjectRoot/.vscode/settings.json (project-specific configs)

configs here affect only your current VS Code project

myProjectRoot/tsConfig.json

TODO

Typescript version

VS Code uses its own bundled Typescript compiler unless you instruct it otherwise, for example:

{
   "typescript.tsdk": "node_modules/typescript/lib"
}

Dialogue & Discussion