我该如何修改BracketHighlighter中的阈值,以便突出相距较远的括号?而不是在左侧栏显示问号,我仍然希望能够定位到括号。
我该如何修改BracketHighlighter中的阈值,以便突出相距较远的括号?而不是在左侧栏显示问号,我仍然希望能够定位到括号。
您可以在以下两个地方更改设置:
~/Library/Application Support/Sublime Text 2/Packages/BracketHighlighter/bh_core.sublime-settings
~/Library/Application Support/Sublime Text 2/Packages/User/bh_core.sublime-settings
相关设置包括:
// Match brackets only when the cursor is touching the inside of the bracket
"match_only_adjacent": false,
// Character threshold to search
"search_threshold": 55000,
// Set mode for string escapes to ignore (regex|string)
"bracket_string_escape_mode": "string",
// Set max number of multi-select brackets that will be searched automatically
"auto_selection_threshold" : 10000,
在Sublime中,导航到首选项,然后转到软件包设置并选择括号 - 用户设置。插入以下行以增加阈值或忽略(不建议)。默认值为5K。
// Character threshold to search
"search_threshold": 1005000,
// Ignore threshold
"ignore_threshold": false,