[英]Remove Sublime Text red pop-ups
How do I remove the irritating red pop-up errors that now appear on Sublime Text? 如何消除Sublime Text上现在出现的令人讨厌的红色弹出错误?
For example in this image: 例如此图像:
I have seen people refer to these as issues with Typescript but I am on Ubuntu and don't seem to have this package installed. 我见过人们将这些称为Typescript问题,但是我在Ubuntu上,似乎没有安装此软件包。
I have tried all the Anaconda settings, but this seems to be a Sublime Text thing. 我已经尝试了所有Anaconda设置,但这似乎是Sublime Text的事情。
Many thanks! 非常感谢!
What you're seeing there are Inline Build Errors
; 您看到的是
Inline Build Errors
; Sublime catches the output of a build when you execute one, and if that information contains location information in the file along with an error and the appropriate setting is enabled, it will add inline errors (called Phantoms) into the document at the error locations to give your errors more context. Sublime在执行构建时捕获构建的输出,并且如果该信息包含文件中的位置信息以及错误,并且启用了适当的设置,它将在错误位置的文档中添加内联错误(称为Phantoms)。为您的错误提供更多背景信息。
This happens without regard to the language or platform that you're using, which is why you may have only turned up examples for TypeScript. 发生这种情况与您所使用的语言或平台无关,这就是为什么您可能只为TypeScript提供示例的原因。
In core Sublime Text, this is controlled by the following setting, which as seen here is enabled by default: 在核心Sublime Text中,此设置由以下设置控制,如此处所示,默认情况下处于启用状态:
// Shows build errors just under the line on which they occur.
"show_errors_inline": true,
Setting that setting to false
in your user preferences should resolve the problem for you. 在用户首选项中将该设置设置为
false
应该可以为您解决问题。 If it doesn't, then a third party package is also injecting build errors (or similar) into your document as well and isn't honouring the setting above. 如果没有,那么第三方软件包也会向您的文档中注入构建错误(或类似错误),并且不遵守上述设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.