Atom Typescript不显示错误 [英] Atom Typescript Not Displaying Errors

查看:65
本文介绍了Atom Typescript不显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个问题,其中Atom没有显示Typescript错误.下面是我在Atom中的代码示例的屏幕截图.

下面是Visual Studio代码中相同代码的屏幕截图.

如何让Atom像Visual Studio Code一样显示相同的错误?

解决方案

Atom需要使用插件才能提供这些错误.安装

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?

解决方案

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.

这篇关于Atom Typescript不显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆