Atom Typescript Not Displaying Errors

筅森魡賤 提交于 2021-01-28 11:00:00

问题


I'm having a problem where Atom isn't displaying Typescript errors. Below is a screenshot of my code example in Atom.

And below is a screenshot of the same code in Visual Studio Code.

How can I get Atom to display the same errors like Visual Studio Code does?


回答1:


Atom requires a plugin in order to provide these errors. Install Atom TypeScript (apm install atom-typescript) and restart Atom and the errors will automatically be displayed.

If the errors are still not showing up, you may need to manually install linter in order to show the errors (apm install linter). However this should be automatically handled by Atom Typescript.

You may also want to install linter-tslint to enable the tslint integration which comes built in for Visual Studio Code, though this is not required.



来源:https://stackoverflow.com/questions/44296815/atom-typescript-not-displaying-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!