gpt4 book ai didi

sublimetext2 - Sublime-从搜索结果中删除.cache文件

转载 作者:行者123 更新时间:2023-12-03 13:35:11 25 4
gpt4 key购买 nike

我在sublime中经常使用command-shift-f函数来grep我的存储库。但是,总是有很长的缩小的.cache文件显示出来,因为它们是自动生成的,所以我不想更改它们。

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

最佳答案

如果您在“首选项”菜单->“设置”中查找,则会在左侧的“默认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 the] and .cache`文件将不再被搜索,因为它们将被视为不值得搜索的二进制文件。

关于sublimetext2 - Sublime-从搜索结果中删除.cache文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44706685/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com