我在 .project 文件中设置了忽略的目录,项目中这个目录已经不再侧栏显示了,但是使用“Find in Folder” 时,会把忽略的目录中的文件也给搜出来,求忽略。
{
"folders":
[
{
"follow_symlinks": true,
"path": ".",
"folder_exclude_patterns": ["build"]
}
]
}
我在 .project 文件中设置了忽略的目录,项目中这个目录已经不再侧栏显示了,但是使用“Find in Folder” 时,会把忽略的目录中的文件也给搜出来,求忽略。
{
"folders":
[
{
"follow_symlinks": true,
"path": ".",
"folder_exclude_patterns": ["build"]
}
]
}
1、Preferences 里面找到setting-default
2、在设置面板里面找到
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS"], ---文件夹
"file_exclude_patterns": [".pyc", ".pyo", ".exe", ".dll", ".obj",".o", ".a", ".l], --文件
3、在[....]中添加你需要屏蔽的文件类型即可。
和“folder_exclude_patterns"类似,使用"file_exclude_patterns"。
如"file_exclude_patterns": ['*.css'] 就可以忽略css文件,类似的可以自行编辑regx去过滤。
来源: sublimeText Docs