【问题标题】:decreaseIndentPattern has no effect减少缩进模式没有效果
【发布时间】:2018-06-03 11:29:50
【问题描述】:

我正在尝试为一种新语言创建一个 TextMate 包,但遇到了 decreaseIndentPattern 的问题。它似乎没有任何效果,即使是一个微不足道的例子:

increaseIndentPattern = 'start';
decreaseIndentPattern = 'end';

我已正确设置范围,并且同一文件中的其他设置确实有效(包括increaseIndentPattern)。我错过了什么吗?

【问题讨论】:

    标签: visual-studio-code textmate vscode-extensions textmatebundles


    【解决方案1】:

    发现要对基于文本的文件启用缩进校正(我的范围以 text 开头),还需要以下内容:

    disableIndentCorrections = :false;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-20
      • 2015-06-12
      • 2016-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-05
      • 2012-03-09
      相关资源
      最近更新 更多