Alt*_*gos 3 sublimetext sublimetext2
当我按 时CTRL + P,我想避免使用特定文件夹(在我的情况下为 doc/)的建议文件。
有没有办法做到这一点?
我已经在上面的评论中回答了这个问题,但我在这里提供一个答案,以便它不再被标记为未答复。
Sublime 论坛上有一个类似的主题讨论这个问题。
简而言之,您需要将以下内容添加到您的用户设置 ( 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"],
Run Code Online (Sandbox Code Playgroud)