我想知道如何对 TextMate bundle 进行编码以及如何从特定 bundle 中排除文件。
你能回答my comment on this textmate whitespace bundle issue中的问题吗? ?
最佳答案
转到 bundle -> bundle 编辑器 -> 显示 bundle 编辑器
展开 Uber Glory bundle 并选择将制表符转换为空格...
在标有“范围选择器”的字段中,输入 - text.html.markdown
这应该向文件添加以下内容:/Macros/Convert Tabs to Spaces, Strip space, save.tmMacro
@@ -51,6 +51,8 @@
<string>@s</string>
<key>name</key>
<string>Convert Tabs to Spaces, Strip whitespace, save</string>
+ <key>scope</key>
+ <string>- text.html.markdown</string>
<key>uuid</key>
<string>D6844EF1-342B-46D9-A687-CB402F7F4209</string>
</dict>
注意:如果您想通过编辑文件进行更改,请确保选择“bundle ”->“bundle 编辑器”->“重新加载 bundle ”
关于macros - 从 textmate bundle 宏中排除文件类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4364415/