小知识,大挑战!本文正在参与“程序员必备小知识”创作活动。
前言
工欲善其事必先利其器。本文主要以忽略文件夹搜索为例,介绍如何配置visual studio code的settings.json文件。
步骤一
首先选择文件——>首选项——>设置
步骤二
点开设置——>选择文本编辑器——>滚动下滑找到setting.json
步骤三
settings.json
{
//搜索过滤
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"**/dist": true,
"/lib": true
}
}
前三个为默认配置,我在此基础上加了排除dist和lib文件夹下的所有文件。
以上是我的配置,仅供参考。
附上官网配置文档地址:code.visualstudio.com/docs/getsta…