修改Sublime Text中BracketHighlighter插件的设置

3

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

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,

谢谢!我不知道在哪里找到设置文件。 - jacoballenwood

2

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

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

// Ignore threshold
"ignore_threshold": false,

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接