Dark red messages in Sublime

前端 未结 1 926
说谎
说谎 2020-12-06 19:36

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

相关标签:
1条回答
  • 2020-12-06 20:33

    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.

    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

    0 讨论(0)
提交回复
热议问题