创建或编辑 .vscode/settings.json 文件: 如果您的项目中没有 .vscode/settings.json 文件,可以创建一个。如果已经存在,可以直接编辑。
添加 files.exclude 配置: 在 settings.json 文件中,使用 files.exclude 属性来指定要隐藏的文件夹或文件。
json{
"files.exclude": {
"**/node_modules": true,
"**/__pycache__": true,
"**/.git": true,
"**/dist": true
}
}
本文作者:SpikeXiong
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!