我正在用 Ruby 编写代码,我的代码是这样的
iterator.each {|item| do_something}
不像这样(这是 textmate 中的默认片段(ea|->)
iterator.each { |item| do_something }
所以,我刚刚使用“Bundles -> Bundle Editor -> Edit Snippets...”菜单对其进行了编辑
结果,每个{|e| __}.tmDelta文件在 ~/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Snippets 目录中创建
但是!,如果我输入 'ea' 和 TAB,没有变化。
怎么了?