3

如何更改 BracketHighlighter 中的阈值以突出显示相距较远的括号?我仍然希望能够找到括号,而不是在左侧栏中显示问号

4

2 回答 2

4

您可以更改设置

~/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,
于 2014-05-30T14:00:06.733 回答
2

在 Sublime 中导航到首选项,然后转到包设置并选择括号 - 用户设置。插入以下行以增加阈值或忽略(不推荐)。默认值为 5K。

// Character threshold to search
"search_threshold": 1005000,

// Ignore threshold
"ignore_threshold": false,
于 2015-02-02T15:58:46.300 回答