How to setup VSCode to show typescript error inline

后端 未结 4 1420

I\'m trying to migrate an ES6 project to typescript. This is my first attempt at writing a typescript module in NodeJS.

It seems to work better in Angular-CLI so far.

4条回答
  •  粉色の甜心
    2021-02-18 16:13

    I ran aground with this issue, managed to solve it by adding "typescript.validate.enable": true to my local settings.json file in the .vscode directory. My settings tell me that the typescript validator is enabled for VS code globally, but I wasn't able to see inline TS errors until I added the local settings file.

提交回复
热议问题