【VisualStudioCode】VSCode隐藏文件夹ignore folder
2016-06-17 10:06
519 查看
使用VSCode,打开一个工程时,发现生成的/tmp目录,build目录全包含到工程中了,问题:
1.搜索一个关键词,一堆temp文件中出现,难以定位
2.编译生成的app也用VSCode打开,消耗内存大
解决办法:ignore folder
1.如果忽略特定工程的文件夹
AppMenu > Preferences > Workspace Settings
如果忽略所有工程文件夹
AppMenu > Preferences > User Settings
2. settings.json配置如下,可以自己定制忽略的文件夹:
// Place your settings in this file to overwrite default and user settings.
{
//-------- Search configuration --------
// Configure glob patterns for excluding files and folders in searches. Inherits all glob patterns from the files.exclude setting.
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true
},
//-------- Files configuration --------
// Configure glob patterns for excluding files and folders.
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.DS_Store": true,
"**/node_modules": true,
"**/iOS": true
}
}
search.exclude 用来忽略搜索的文件夹
files.exclude 用来忽略工程打开的文件夹
3.示例,配置search.exclude前后
配置settings.json前,一堆tmp目录的搜索信息出来干扰
![](https://img-blog.csdn.net/20160617100400046?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
配置settings.json后,这个世界安静了
![](https://img-blog.csdn.net/20160617100505869?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
1.搜索一个关键词,一堆temp文件中出现,难以定位
2.编译生成的app也用VSCode打开,消耗内存大
解决办法:ignore folder
1.如果忽略特定工程的文件夹
AppMenu > Preferences > Workspace Settings
如果忽略所有工程文件夹
AppMenu > Preferences > User Settings
2. settings.json配置如下,可以自己定制忽略的文件夹:
// Place your settings in this file to overwrite default and user settings.
{
//-------- Search configuration --------
// Configure glob patterns for excluding files and folders in searches. Inherits all glob patterns from the files.exclude setting.
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true
},
//-------- Files configuration --------
// Configure glob patterns for excluding files and folders.
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.DS_Store": true,
"**/node_modules": true,
"**/iOS": true
}
}
search.exclude 用来忽略搜索的文件夹
files.exclude 用来忽略工程打开的文件夹
3.示例,配置search.exclude前后
配置settings.json前,一堆tmp目录的搜索信息出来干扰
配置settings.json后,这个世界安静了
相关文章推荐
- Scala代码实现列出Hadoop 文件夹下面的所有文件
- 判断指定目录是否有文件
- SmartSVN设置ignoreList
- ubuntu 系统目录结构
- 为visual studio code配置go开发环境(windows)
- 怎样安装和启动ABBYY Hot Folder
- Git忽略已跟踪的文件和删除已入仓库的文件夹
- Design for Folder(Mac AppStore)
- VS Code for .Net core 1.0 environment configuration
- 32位Ubuntu安装VSCode
- mysql防止多字段重复插入
- xcode中folder与group的区别
- VirtualBox: Full-Screen-Display and Share-Folder problem
- 如何在Visual Studio Code中调用浏览器运行HTML代码
- Android Studio 中提交时建议过滤的文件
- eclipse package,source folder,folder区别及相互转换
- 在团队协作中,该如何提交一份干净、可靠的代码给队友?
- Xcode中Groups和Folder的区别
- svn propset svn:ignore
- SharePoint 的Discussion List的Discussion Content Type属于Folder 类型,并非是Item类型