Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
389 views
in Technique[技术] by (71.8m points)

sublimetext3 - Dark red messages in Sublime

I'm getting these weird dark red messages in Sublime Text after installing Sierra iOS and updating Sublime to Build 3126.

Sublime Text inline errors screenshot

I tried to delete the pieces of code and retype them by hand, but they keep reappearing every time I hit 'Save'. Does anyone know what they are and how to get rid of them, please?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Those are inline build errors. It is a new feature in the Beta Build 3124 (Dev Build 3118).

Build errors are now shown inline, at the location the error occurred. This is done via the new Phantoms API, which allows HTML annotations to be added to the text buffer by plugins.

enter image description here

Inline build errors can be disabled via the show_errors_inline setting.

Sublime Text Blog

Inline build errors can be disabled via the show_errors_inline setting.

User

Menu > Preferences > Settings (Preferences.sublime-settings - User)

{
    "show_errors_inline": false
}

Per-Project

Menu > Project > Edit Project

{
    "settings": {
        "show_errors_inline": false
    }
}

How to Dismiss Inline Build Errors via Key Binding

Create a custom key binding.

Menu > Preferences > Key Bindings

{
    "keys": ["ctrl+l"],
    "command": "exec",
    "args": {
        "hide_phantoms_only": true
    }
}

Or for vim modes:

{
    "keys": ["ctrl+l"],
    "command": "exec",
    "args": {
        "hide_phantoms_only": true
    },
    "context": [
        { "key": "setting.command_mode" }
    ]
}

Re: Sublime Text Forum


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...