首页 > Sublime Text 使用在“文件夹内搜索”功能时,如何忽略搜索某些目录下的文件

Sublime Text 使用在“文件夹内搜索”功能时,如何忽略搜索某些目录下的文件

我在 .project 文件中设置了忽略的目录,项目中这个目录已经不再侧栏显示了,但是使用“Find in Folder” 时,会把忽略的目录中的文件也给搜出来,求忽略。

{
    "folders":
    [
        {
            "follow_symlinks": true,
            "path": ".",
            "folder_exclude_patterns": ["build"]
        }
    ]
}

和“folder_exclude_patterns"类似,使用"file_exclude_patterns"。

如"file_exclude_patterns": ['*.css'] 就可以忽略css文件,类似的可以自行编辑regx去过滤。

来源: sublimeText Docs

【热门文章】
【热门文章】