gpt4 book ai didi

sublimetext - Sublime Text : common "folder_exclude_patterns" for all folder paths in a project

转载 作者:行者123 更新时间:2023-12-04 02:40:31 25 4
gpt4 key购买 nike

我们如何为项目中的所有文件夹路径设置通用的“folder_exclude_patterns”。

例如,在以下项目配置中,必须为每个文件夹路径重复 folder_exclude_patterns。我们可以将它放在配置中的一个通用位置,而不是在每个路径设置下指定吗?

{
"folders":
[
{
"follow_symlinks": true,
"path": "/path/to/folder/1",
"folder_exclude_patterns": ["node_modules", "target", ".sass-cache"]

},
{
"follow_symlinks": true,
"path": "/path/to/folder/2",
"folder_exclude_patterns": ["node_modules", "target", ".sass-cache"]
},
{
"follow_symlinks": true,
"path": "/path/to/folder/3",
"folder_exclude_patterns": ["node_modules", "target", ".sass-cache"]
}
]
}

最佳答案

您正在项目设置中进行调整。请改用用户设置。

可能这就是你想要做的:



Preferences > settings



看看下面的“folder_exclude_patterns”属性,我添加了“node_modules”来隐藏那些文件夹,你可以继续,还可以添加“target”和“.sass-cache”文件夹来隐藏它们。
{
"binary_file_patterns":
[
"*.dds",
"*.eot",
"*.gif",
"*.ico",
"*.jar",
"*.jpeg",
"*.jpg",
"*.pdf",
"*.png",
"*.swf",
"*.tga",
"*.ttf",
"*.zip",
"node_modules/**"
],
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.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":
[
"*.phpintel",
".svn",
".git",
".hg",
"CVS",
"node_modules",
],
"font_size": 12,
"ignored_packages":
[
"Vintage"
],
"ignored_words":
[
"autoload",
"config",
"php"
],
"show_encoding": true,
"spell_check": false,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"word_wrap": false
}

关于sublimetext - Sublime Text : common "folder_exclude_patterns" for all folder paths in a project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25074760/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com