又到了日常扣C盘的环节(系统缓存,qq,wx等缓存都清完了但是C盘还是小得有点可怜)

持续性竭泽而渔

在系统目录下发现了一个vscode-cpptools, 其中的ipch竟然高达十几个G

C:\Users\(你的用户名)\AppData\Local\Microsoft\vscode-cpptools

查询官方文档

C/C++ 扩展常见问题解答 (visualstudio.com)https://code.visualstudio.com/docs/cpp/faq-cpp

What is the ipch folder?

The language server caches information about included header files to improve the performance of IntelliSense. When you edit C/C++ files in your workspace folder, the language server will store cache files in the ipch folder. By default, the ipch folder is stored under the user directory. Specifically, it is stored under %LocalAppData%/Microsoft/vscode-cpptools on Windows, and for Linux and macOS it is under ~/.vscode-cpptools. By using the user directory as the default path, it will create one cache location per user for the extension. As the cache size limit is applied to a cache location, having one cache location per user will limit the disk space usage of the cache to that one folder for everyone using the default setting value.

VS Code per-workspace storage folders were not used because the location provided by VS Code is not well known and we didn't want to write GB's of files where users may not see them or know where to find them.

With this in mind, we knew that we would not be able to meet the needs of every different development environment, so we provided settings to allow you to customize the way that works best for your situation.

"C_Cpp.intelliSenseCachePath": <string>

This setting allows you to set workspace or global overrides for the cache path. For example, if you want to share a single cache location for all workspace folders, open the VS Code settings, and add a User setting for IntelliSense Cache Path.

"C_Cpp.intelliSenseCacheSize": <number>

This setting allows you to set a limit on the amount of caching the extension does. This is an approximation, but the extension will make a best effort to keep the cache size as close to the limit you set as possible. If you are sharing the cache location across workspaces as explained above, you can still increase/decrease the limit, but you should make sure that you add a User setting for IntelliSense Cache Size.

How do I disable the IntelliSense cache (ipch)?

If you do not want to use the IntelliSense caching feature that improves the performance of IntelliSense, you can disable the feature by setting the IntelliSense Cache Size setting to 0 (or "C_Cpp.intelliSenseCacheSize": 0" in the JSON settings editor).

简而言之这是智能感知缓存的路径,编辑C/C++ 文件时,vscode的语言服务会将缓存文件存储在该文件夹中(每编译一次都对应着ipch里的一个文件夹)

在vscode的设置中搜索C_Cpp.intelliSenseCache, 把目录改到其他盘, 而在c盘中的缓存可以直接删除(无异常情况)

如果不想使用智能感知缓存功能,可以通过将缓存大小设置设置为 0(或在 JSON 设置编辑器中)来禁用该功能。"C_Cpp.intelliSenseCacheSize": 0"

清C盘, vscode-cpptools ipch文件夹高达10G相关推荐

  1. VSCode产生的ipch文件夹占用C盘空间过大处理

    ipch文件夹是Intelli Sense(好像是预编译头文件之类的)这个东西产生的缓存文件,占用空间很大!!!每编译一次文件就会产生ipch里对应的一个文件夹.我看了我的ipch文件夹产生了121个 ...

  2. vs2010的sdf文件和ipch文件夹

    From:  http://hi.baidu.com/vcdashi/blog/item/f25a3511afbf136bcb80c40e.html vs2010打开某个工程 ,转换成功之后,在工程目 ...

  3. 关于盘符里某些文件夹删除不了的解决方案研究

    电脑用久了,有时我们会发现盘符里某些文件夹删除不了的情况,究其原因有很多我们不探讨,我们要探讨的就是要怎样把它干掉:) 1:网上有很多文件夹粉碎工具,如冰仞等,处理的干净利落,效果很不错. 2:其实还 ...

  4. Android插u盘自动执行,android tv box ---- 插入u盘直接播放指定文件夹中的视频

    android tv box ---- 插入u盘直接播放指定文件夹中的视频思路: 1.监听u盘插入广播 2.遍历指定目录下的所有文件,找到视频文件 3.将符合条件的文件加入播放集合中 4.循环播放 n ...

  5. [实战]MVC5+EF6+MySql企业网盘实战(12)——新建文件夹和上传文件

    写在前面 之前的上传文件的功能,只能上传到根目录,前两篇文章实现了新建文件夹的功能,则这里对上传文件的功能进行适配. 系列文章 [EF]vs15+ef6+mysql code first方式 [实战] ...

  6. 服务器c盘有个inetpub文件夹,Win10怎么删除c盘下的inetpub文件夹

    Win10怎么删除c盘下的inetpub文件夹 Win10怎么删除c盘下的inetpub文件夹?升级Win10系统之后,很多用户发现c盘多了一个名为"inetpub"的文件夹,那么 ...

  7. 服务器inetpub是什么文件夹,inetpub是什么文件夹?Win10怎么删除c盘下的inetpub文件夹?...

    Win10怎么删除c盘下的inetpub文件夹?升级Win10系统之后,很多用户发现c盘多了一个名为"inetpub"的文件夹,那么这个inetpub是什么文件夹呢?其实inetp ...

  8. 计算机c盘program,电脑c盘program files(x86)文件夹可以删除吗

    在给电脑安装完系统之后,由于安装的系统中总是会自带一些用户不需要使用到的文件或者程序,我们为了能够保证系统运行的流畅,通常都会将其进行删除,但是最近有许多用户对于c盘program files(x86 ...

  9. Win10-更改c盘下的用户文件夹名[转]

    转载 Win10-更改c盘下的用户文件夹名[转] 2019年 版权声明:本文为转载文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明. 转载链接:https://blog. ...

最新文章

  1. PyTorch-常用代码
  2. 【TensorFlow】——索引与切片
  3. 指定端口传输_一段话告诉你什么是端口
  4. 301永久重定向实现方式及302重定向(侧重.htaccess)
  5. TDEngine游戏平台框架逻辑
  6. Windows核心编程_添加开机自启动
  7. Visio 2013打开自动关闭,闪退的解决办法
  8. 华为支付试水!移动支付会打破支付宝、微信双寡头的格局吗?
  9. 天刀服务器未响应,《天涯明月刀手游》画面卡顿解决办法
  10. 软件测试基础 (一): 单元测试
  11. css文字不换行显示、超出显示点点点等实用性小记
  12. java发送邮件问题
  13. 罗克韦尔AB PLC 通过KEPServer实现与西门子1200PLC的以太网通信
  14. 曾经,被嫌弃的腾讯股权——读《腾讯传》
  15. 华为云虚拟服务器,云服务器是虚拟主机
  16. web 页面的提交方式
  17. mysql proxy atlas_mysql-proxy Atlas
  18. 一文读懂机智云物联网APP开发
  19. 长链剖分(知识点整理+板子总结)
  20. Docker容器搭建运行python深度学习环境

热门文章

  1. 润乾V5与springBoot集成
  2. 什么是码表,什么是维度表?
  3. 相信未来 很喜欢的诗
  4. 日本动漫常用对话,学会之后,你的日语就会达到“字幕级”!
  5. 解决dpkg/apt-get error : 子进程 post-installation script 返回了错误号 1
  6. MySQL 远程登录阿里云RDS和常用命令
  7. 基于51单片机水塔水箱液水位WIFI监控报警设计proteus仿真原理图PCB
  8. ltunes无法验证服务器,itunes无法验证服务器s.mzstatic… - Apple 社区
  9. Android 应用开发学习笔记(1 of 2,from hitwh)
  10. useradd和adduser 区别