简体   繁体   中英

Remove Sublime Text red pop-ups

How do I remove the irritating red pop-up errors that now appear on 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.

I have tried all the Anaconda settings, but this seems to be a Sublime Text thing.

Many thanks!

What you're seeing there are 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.

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.

In core Sublime Text, this is controlled by the following setting, which as seen here is enabled by default:

// 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM