问题
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