1.在Visual Studio还没有安装TypeScript
2.npm install -g typescript
3.执行命令:tsc --init
并解注outDir
4.Ctrl+shift+B 选择 tsc:watch即可实时编译。