VSCode 设置文件显示过滤和搜索过滤

1.前言

这段时间一直再搞系统相关东西,一直以来都在用source insight代码管理器,也比较方便,可是针对中文兼容性不太好。趁这个机会也接触一下vscode,界面比较好看,就是文件搜索有点慢。还有就是想把无关文件和文件夹过滤掉,结合网上资源和实际,有个脚本可以实现这些。

2.设置 

设置-->文本编辑器-->文件  【在settings.json编辑】打开修改如下:

{
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true,
    "workbench.colorTheme": "Solarized Dark",
    "editor.fontSize": 15,
    "window.zoomLevel": 2,
    "editor.renderIndentGuides": false,
    "workbench.editor.enablePreview": false,
    "search.exclude": {        
        "**/node_modules": true,
        "**/bower_components": true,
        "build/": true,
        "temp/": true,
        "library/": true,
        "**/.git": true,
        "**/*.o": true,
        "**/*.cmd": true,
        "**/*.tmp*": true,
        "**/*.git*": true,
        "**/*.symvers": true,
        "**/*.order": true

    },
    "files.exclude": {
        "**/.git": true,
        "**/*.o": true,
        "**/*.cmd": true,
        "**/*.tmp*": true,
        "**/*.git*": true,
        "library/": true,
        "local/": true,
        "temp/": true,
        "**/*.symvers": true,
        "**/*.order": true    
    },
    "C_Cpp.errorSquiggles": "Disabled",
    "files.autoGuessEncoding": true

3.常见问题

3.1 自动检测字符编码

"files.autoGuessEncoding": true

3.2 错误检测关闭

"C_Cpp.errorSquiggles": "Disabled"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值