macros - 从 textmate bundle 宏中排除文件类型

标签 macros textmate bundle

我想知道如何对 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/

相关文章:

python - 宏程序不起作用

c# - 我可以扩展 VS Code TextMate 语言语法吗?

macos - 如何格式化 date -u 以便结果包括 Mac OSX 终端 session 中的时区偏移?

cocoa - 在 Cocoa 中编译时获取包版本

objective-c - 在 Objective C 中断言对象类

c++ - 宏的参数可以传递给char数组的变量吗?

php - 在 Symfony2 中安装新包后无法使用 Netbeans 控制台(错误 : Symfony2 console must be selected)

android - 在 Android 中 react native 多包

macros - Racket - 将特殊变量注入(inject)宏代码

vim - Vim 中的 TextMate 评论横幅