首页 > 其他 > 详细

vsCode--设置显示文件和搜索过滤

时间:2019-10-19 10:08:08      阅读:481      评论:0      收藏:0      [点我收藏+]

文件位置:文件(File)-首选项(Preference)-设置(setting)

技术分享图片

打开setting.json文件输入一下内容即可

{
    "search.exclude": {        
        "**/node_modules": true,
        "**/bower_components": true,
        "build/": true,
        "temp/": true,
        "library/": true,
        "**/*.anim": true
    },
    "files.exclude": {
        "**/node_modules": true,
        "**/.git": true,
        "**/.DS_Store": true,
        "**/*.meta": true,
        "library/": true,
        "local/": true,
        "temp/": true    
    }
}

上面的字段将为 VS Code 设置搜索时排除的目录,和在文件列表中隐藏的文件类型。由于 build, temp, library 都是编辑器运行时自动生成的路径,而且会包含我们写入的脚本内容,所以应该在搜索中排除。而 assets 目录下的每个文件都会生成一个 .meta 文件,一般来说我们不需要关心他的内容,node_modules文件较大, 我一般也隐藏掉, 如果不需要的话, 可以不设置此项

 

vsCode--设置显示文件和搜索过滤

原文:https://www.cnblogs.com/sllzhj/p/11702735.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!