【问题标题】:Change settings of BracketHighlighter Package Sublime Text更改 BracketHighlighter Package Sublime Text 的设置
【发布时间】:2014-05-29 15:35:55
【问题描述】:

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

【问题讨论】:

    标签: sublimetext2 settings sublimetext package-control


    【解决方案1】:

    您可以在

    中更改设置
    ~/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,
    

    【讨论】:

    • 谢谢!不知道在哪里可以找到设置文件。
    【解决方案2】:

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

    // Character threshold to search
    "search_threshold": 1005000,
    
    // Ignore threshold
    "ignore_threshold": false,
    

    【讨论】:

      猜你喜欢
      • 2015-05-20
      • 2013-12-15
      • 1970-01-01
      • 2017-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-30
      • 2013-12-17
      相关资源
      最近更新 更多