安装 Sierra iOS 并将 Sublime 更新为 Build 3126 后,我在 Sublime Text 中收到这些奇怪的深红色消息。
我试图删除这些代码并手动重新输入它们,但每次我点击“保存”时它们都会重新出现。请问有谁知道它们是什么以及如何摆脱它们?
最佳答案
这些是内联构建错误。这是 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.
可以通过
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/