当我按CTRL + P
时,我想避开特定文件夹的建议文件(在我的情况下为doc /)。
有没有办法做到这一点?
答案 0 :(得分:3)
我在评论中已经回答了这个问题,但我在这里提供了一个答案,以便它不再被标记为未答复。
Sublime Forum上有一个类似的主题可以讨论这个问题。
简而言之,您需要将以下内容添加到您希望忽略的任何其他目录或文件类型的用户设置(Preferences -> Settings - User
)中。
// folder_exclude_patterns and file_exclude_patterns control which files
// are listed in folders on the side bar. These can also be set on a per-
// project basis.
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS"],
"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db"],
// These files will still show up in the side bar, but won't be included in
// Goto Anything or Find in Files
"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],