decreaseIndentPattern无效

问题描述 投票:0回答:1

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

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

我已正确设置范围,同一文件中的其他设置可以正常工作(包括increaseIndentPattern)。我错过了什么吗?

visual-studio-code textmate vscode-extensions textmatebundles
1个回答
0
投票

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

disableIndentCorrections = :false;
© www.soinside.com 2019 - 2024. All rights reserved.