Met*_*ngs 5 textmate textmate2
在 TextMate 2 中打字曾经是一次缩进挫折的冒险,现在可以通过全局的disableIndentCorctions设置来解决。然而,粘贴代码似乎总是以非常错误的缩进级别结束。这让我抓狂。
我遇到过以下设置:
{ disableIndentCorrections = :true;
indentOnPaste = 'default';
}
Run Code Online (Sandbox Code Playgroud)
在搜索中,我看到indentOnPaste设置为'default'或'simple',两者都有代码将多个选项卡向右跳转,而实际上不应该这样做。
有人知道如何禁用粘贴时的缩进吗?
小智 0
摘自 r9283 发行说明:
\n\n将disableIndentCorctions 拆分为两个设置:
\n\ndisableIndentCorctions 设置禁用 TextMate 在您键入时执行的(主动)缩进更正。
\n\n附加的 indentOnPaste 设置控制粘贴时如何缩进,可以设置为:
\n\nsimple\xe2\x80\x94 这是先前在设置disableIndentCorctions 时隐含的缩进行为。它将粘贴缩进到插入符号的位置,并且适用于 Python。disable\xe2\x80\x94 文本按原样插入,不缩进。| 归档时间: |
|
| 查看次数: |
767 次 |
| 最近记录: |