2
我使用command-shift-f
函数很多sublime grep我的存储库。然而,总是有很长的,缩小的文件,这些文件显示出我不想更改,因为它们是自动生成的。崇高 - 从搜索结果中删除.cache文件
有没有办法阻止崇高的搜索或隐藏那些.cache
文件的搜索结果?
我使用command-shift-f
函数很多sublime grep我的存储库。然而,总是有很长的,缩小的文件,这些文件显示出我不想更改,因为它们是自动生成的。崇高 - 从搜索结果中删除.cache文件
有没有办法阻止崇高的搜索或隐藏那些.cache
文件的搜索结果?
如果您在Preferences菜单看 - >设置,你会在左侧默认Preferences.sublime-preferences
文件中找到这样的:
// These files will still show up in the side bar, but won't be included in
// Goto Anything or Find in Files
"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],
你可以简单地把它复制到你的用户首选项的权利,并添加, "*.cache
“before the
”and
.cache`文件将不再被搜索,因为它们将被视为不值得搜索的二进制文件。
谢谢!!!!!! – Evolve