[UPDATE] VS Code 1.6 now ships with TypeScript 2.0.3 .
I just installed the latest Typescript, currently v.2.0.3 , and installed VS v.1.5.3 code on macOS Sierra. For some reason, it was after an official document that didn't work for me.
Here is how I did it:
After installing the latest version worldwide: npm i -g typescript , I added the following line to my settings.json file ( cmd + , open):
"typescript.tsdk": "/usr/local/lib/node_modules/typescript/lib",
Hope this helps someone else.
[update] like @ptpaterson mentioned in the comment below on windows path: "typescript.tsdk": "C:/Users/{user_name}/AppData/Roaming/npm/node_modules/typescript/lib/"
rafaelbiten Sep 23 '16 at 18:30 2016-09-23 18:30
source share