本文介绍了Sublime 中的深红色消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

我尝试删除代码片段并手动重新键入它们,但每次我点击保存"时它们都会重新出现.请问有人知道它们是什么以及如何摆脱它们吗?

解决方案

那些是内联构建错误.这是

可以通过 show_errors_inline 设置禁用内联构建错误.

Sublime Text 博客

可以通过 show_errors_inline 设置禁用内联构建错误.

用户

菜单>首选项设置 (Preferences.sublime-settings - User)

{show_errors_inline":假}

每个项目

菜单>项目 >编辑项目

{设置":{show_errors_inline":假}}

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

创建自定义键绑定.

菜单>首选项键绑定

{"keys": ["ctrl+l"],命令":执行",参数":{hide_phantoms_only":真}}

或者对于 vim 模式:

{"keys": ["ctrl+l"],命令":执行",参数":{hide_phantoms_only":真},语境": [{ "key": "setting.command_mode" }]}

回复:Sublime Text 论坛

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

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?

解决方案

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

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

这篇关于Sublime 中的深红色消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 04:51