Preferences->Settings ,编辑相关代码,注意JSON格式:

  • 排除特定目录,使用:"folder_exclude_patterns"
  • 排除特定文件,使用:"file_exclude_patterns"

操作如下

  • 菜单栏 Preferences->Setting ,如下;

sublime text 3 文件列表忽略特定格式的文件

  • 添加常见过滤选项:在左侧栏里搜索folder_exclude_patterns和file_exclude_patterns,把整条内容复制于是右侧。注意每条数据之间用,分隔。

sublime text 3 文件列表忽略特定格式的文件

  • 添加其它过滤选项,如在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 }

 

相关文章:

  • 2021-12-10
  • 2021-11-17
  • 2021-09-23
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-11-26
猜你喜欢
  • 2021-10-30
  • 2021-11-19
  • 2021-10-11
  • 2021-06-06
  • 2021-07-08
  • 2021-06-02
  • 2022-12-23
相关资源
相似解决方案