它一定很简单,但我真的找不到它为什么这样做。
ST3 的 Sublimlinter -php 一次只突出一个错误,即使我的代码中还有其他错误。如果我命令显示所有错误,我只会看到一个错误。如果我删除此错误所在的位置,它会显示另一个错误,但仍然就像所有代码中只有这个错误一样。如果我命令下一个或上一个错误,它只会停留在突出显示的那个上。
所以我看到所有错误的唯一方法就是一个一个地更正或删除每一个错误,使用这个插件的人知道它是多么的细致:p
在这里找到我在 SL3 中的用户设置。
{
"user": {
"debug": true,
"delay": 0.75,
"error_color": "D02000",
"gutter_theme": "",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"csslint": {
"@disable": false,
"args": [],
"errors": "",
"excludes": [],
"ignore": "",
"warnings": ""
},
"htmltidy": {
"@disable": false,
"args": [],
"excludes": []
},
"php": {
"@disable": false,
"args": [],
"excludes": []
},
"phpcs": {
"@disable": false,
"args": [],
"excludes": [],
"standard": "PSR2"
},
"phplint": {
"@disable": false,
"args": [],
"excludes": []
}
},
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": [
"C:/wamp/bin/php/php5.5.12"
]
},
"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
}
}