清C盘, vscode-cpptools ipch文件夹高达10G

news/2024/7/16 9:12:06 标签: vscode, ide, visual studio code

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

持续性竭泽而渔

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

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

查询官方文档

C/C++ 扩展常见问题解答 (visualstudio.com)icon-default.png?t=M3K6https://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"


http://www.niftyadmin.cn/n/816376.html

相关文章

oracle mysql 卸载_完美完全卸载Oracle 11g数据库

Oracle 11g可在开始菜单中卸载&#xff0c;然后同时需要删除注册表中相关内容。操作系统&#xff1a;windows10专业版。卸载步骤&#xff1a;1、停用oracle服务&#xff1a;进入计算机管理&#xff0c;在服务中&#xff0c;找到oracle开头的所有服务&#xff0c;右击选择停止。…

[AcWing算法提高] 搜索专题练习(进行中......)

文章目录✔Flood Fill[AcWing 1097. 池塘计数](https://www.acwing.com/problem/content/1468/)[AcWing 1098. 城堡问题]([1098. 城堡问题 - AcWing题库](https://www.acwing.com/problem/content/1100/))[AcWing 1106. 山峰和山谷](https://www.acwing.com/problem/content/14…

C语言socket传输文件

TCP服务端和TCP客户端编程,完成文件传输(客户端输入文件名,服务端接收文件数据并保存至服务端本地) 此文件是在Linux系统运行的,Windows中不包含socket等头文件 可以传输大型文件,其基本思想为把文件名字读出来放到filename数组中,然后copy到buffer中,接着将独到的文件…

java iwap框架_JAVA知i识点I/O流框架简要笔记(建议收藏)

I/O 框架1|0流的概念内存与存储设备之间传输数据的通道2|0流的分类2|1按方向【重点】输入流&#xff1a;将中的内容读到中输出流&#xff1a;将中的内容写到中2按单位字节流&#xff1a;以字节为单位&#xff0c;可以读写所有数据字符流&#xff1a;以字符为单位&#xff0c;只…

[数据库] 一次pro*c练习总结

文章目录一.实验内容:1.pc程序预编译编译为.c文件2.Pro*C编程练习二.实验步骤:1.pc程序预编译编译为.c文件Ⅰ.在cmd中studentAgeQuery.pc所处目录下预编译为example.cⅡ.在IDE中新建空项目并导入example.cⅢ.配置关联本地Oracle的链接器和目录文件Ⅳ.编译运行2.Pro*C编程练习Ⅰ…

java浅拷贝_java 浅拷贝 深拷贝

一&#xff0c;问题背景最近遇到一块代码&#xff0c;看了半天没有看明白如何实现树形结构的。debugger以后发现原理&#xff0c;其实是利用了java对象是引用类型&#xff0c;利用浅拷贝来实现树型结构。/****paramtable "树型结构中的所有节点"*paramchildrenField …

[视频演示]快速上手gitee

分享一点我个人的理解以及使用经验,有理解不当的地方欢迎指正 (遇见问题建议先百度/Google,会是不错的经验) 方便起见直接放到b站了 # 快速上手gitee 视频开头出现的vscode中Git的使用经验在这里 初次使用Git克隆以及提交项目代码

2019第十届蓝桥杯省赛C/C++B组试题C:数列求和

2019第十届蓝桥杯省赛C/CB组 试题C&#xff1a;数列求和 C语言代码 #include<stdio.h> int main() {int a,b,c;a1,b1,c1;int temp;for(int i4;i<20190324;i){temp(abc)%10000;ab;bc;ctemp;}if(temp/1000!0) printf("%d",temp); }运行结果 4659