sublimetext3 - Sublime 中的深红色消息

标签 sublimetext3 sublimetext

安装 Sierra iOS 并将 Sublime 更新为 Build 3126 后,我在 Sublime Text 中收到这些奇怪的深红色消息。

Sublime Text inline errors screenshot

我试图删除这些代码并手动重新输入它们,但每次我点击“保存”时它们都会重新出现。请问有谁知道它们是什么以及如何摆脱它们?

最佳答案

这些是内联构建错误。这是 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



可以通过 show_errors_inline 禁用内联构建错误。环境。

用户
Menu > Preferences > Settings (Preferences.sublime-settings - User)
{
    "show_errors_inline": false
}

每个项目
Menu > Project > Edit Project
{
    "settings": {
        "show_errors_inline": false
    }
}

如何通过键绑定(bind)消除内联构建错误

创建自定义键绑定(bind)。
Menu > Preferences > Key Bindings
{
    "keys": ["ctrl+l"],
    "command": "exec",
    "args": {
        "hide_phantoms_only": true
    }
}

或者对于 vim 模式:
{
    "keys": ["ctrl+l"],
    "command": "exec",
    "args": {
        "hide_phantoms_only": true
    },
    "context": [
        { "key": "setting.command_mode" }
    ]
}

回复:Sublime Text Forum

关于sublimetext3 - Sublime 中的深红色消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39714095/

相关文章:

directory - 如何关闭 Sublime Text 中的文件夹?

python - 内置魔术变量名称/属性

syntax-highlighting - 如何在 Sublime Text 3 中编辑 Solarized(Light)主题

sublimetext2 - sublime 中 .sage 的语法高亮

python - Sublime Text 中反斜杠前的红灯

ruby - 配置 SubLime Linter 插件以使用 Ruby 1.9 语法

github - 缩进不适用于 EditorConfig Sublime Text 3

sublimetext3 - sublime中如何删除重复字符?

sublimetext - Sublime Text 3 如何更改文件侧边栏的字体大小?

node.js - Sublime text 找不到 Node.js。如何帮助 Sublime 正确找到 Node?