4

每次出现错误时,Sublimelinter 都会启动,标记错误,并侵入性地弹出一个显示第一个错误的窗口。

  1. 如何设置它,只标记错误而不弹出窗口?
  2. 如何让它标记所有错误,而不仅仅是第一个

我目前在 Ubuntu 上使用仅保存模式和 sublime3。我正在编辑 php 文件

有人可以帮忙吗?非常感谢

我在下面的设置...

{
    "user": {
    "debug": false,
    "delay": 0.25,
    "error_color": "D02000",
    "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
    "gutter_theme_excludes": [],
    "lint_mode": "save only",
    "linters": {
        "php": {
            "@disable": false,
            "args": [],
            "excludes": []
        }
    },
    "mark_style": "squiggly underline",
    "no_column_highlights_line": false,
    "passive_warnings": true,
    "paths": {
        "linux": [],
        "osx": [],
        "windows": []
    },
    "python_paths": {
        "linux": [],
        "osx": [],
        "windows": []
    },
    "rc_search_limit": 3,
    "shell_timeout": 10,
    "show_errors_on_save": true,
    "show_marks_in_minimap": true,
    "syntax_map": {
        "html (django)": "html",
        "html (rails)": "html",
        "html 5": "html",
        "php": "html",
        "python django": "python"
    },
    "warning_color": "DDB700",
    "wrap_find": true
}

}

4

4 回答 4

2

我遇到了同样的问题,我的 lint_mode 设置为背景。要修复它,请转到工具 > SublimeLinter > 保存时显示错误。如果已选中,请选择它以取消选中它。

于 2016-04-16T20:51:33.633 回答
2

我有同样的问题,要解决它只需删除该行:

“工具提示”:真

来自 SublimeLinter » 用户设置文件。

于 2017-07-07T04:28:10.427 回答
1

这听起来像是加载/保存 lint 模式。背景模式的侵入性要小得多。你想要"lint_mode": "background"在你的 SublimeLinter 包用户设置中。然后在所有有问题的行的排水沟中都会有警告和错误符号。

于 2015-06-02T23:25:05.613 回答
0

根据您的偏好。崇高设置

只要把这条线

"sublimelinter_popup_errors_on_save": true,

为了在页面上显示所有错误,您需要

ctrl+超级+a

于 2016-06-07T19:31:48.747 回答