2017-06-22 54 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