sublime text 3 文件列表忽略特定格式的文件
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
1 { 2 "color_scheme": "Packages/Color Scheme - Default/iPlastic.tmTheme", 3 "file_exclude_patterns": 4 [ 5 "*.pyc", 6 "*.pyo", 7 "*.exe", 8 "*.dll", 9 "*.obj", 10 "*.o", 11 "*.a", 12 "*.lib", 13 "*.so", 14 "*.dylib", 15 "*.ncb", 16 "*.sdf", 17 "*.suo", 18 "*.pdb", 19 "*.idb", 20 ".DS_Store", 21 "*.class", 22 "*.psd", 23 "*.db", 24 "*.sublime-workspace" 25 ], 26 "folder_exclude_patterns": 27 [ 28 ".svn", 29 ".repo", 30 ".git", 31 ".hg", 32 "CVS" 33 ], 34 }