Typescript compile on save is not working when tsconfig.json is in project
Adding "compileOnSave":true
to tsconfig.json should do the trick:
{
"compileOnSave": true,
"compilerOptions": {
...
I uninstalled Visual Studio 2015 and Typescript 2.0.3. Then I reinstalled Visual Studio 2015. After opening my solution and checked Typescript 1.8.3, I installed Typescript 2.0.3 and added "compileOnSave" before "compilerOptions". Since then it works for me. You need to restart Visual Studio after adding this option.
{
"compileOnSave": true,
"compilerOptions": {
...
}