
Preferences->Settings ,编辑相关代码,注意JSON
格式:
- 排除特定目录,使用:
"folder_exclude_patterns"
- 排除特定文件,使用:
"file_exclude_patterns"
操作如下
- 菜单栏 Preferences->Setting ,如下;
- 添加常见过滤选项:在左侧栏里搜索folder_exclude_patterns和file_exclude_patterns,把整条内容复制于是右侧。注意每条数据之间用,分隔。
- 添加其它过滤选项,如在folder_exclude_patterns里添加 .repo
- 重启Sublime Text 3
生成的配置文件在:~/.config/sublime-text-3/Packages/User/Preferences.sublime-settings
{
"color_scheme": "Packages/Color Scheme - Default/iPlastic.tmTheme",
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
"*.o",
"*.a",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
".DS_Store",
"*.class",
"*.psd",
"*.db",
"*.sublime-workspace"
],
"folder_exclude_patterns":
[
".svn",
".repo",
".git",
".hg",
"CVS"
],
}