2017-06-22 53 views
2

我使用command-shift-f函数很多sublime grep我的存储库。然而,总是有很长的,缩小的文件,这些文件显示出我不想更改,因为它们是自动生成的。崇高 - 从搜索结果中删除.cache文件

有没有办法阻止崇高的搜索或隐藏那些.cache文件的搜索结果?

回答

3

如果您在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"], 

你可以简单地把它复制到你的用户首选项的权利,并添加, "*.cachebefore theand .cache`文件将不再被搜索,因为它们将被视为不值得搜索的二进制文件。

+0

谢谢!!!!!! – Evolve