清C盤, vscode | 您所在的位置:網(wǎng)站首頁(yè) › ipch文件夾 › 清C盤, vscode |
文章目錄
[C/C++ 擴(kuò)展常見(jiàn)問(wèn)題解答 (visualstudio.com)](https://code.visualstudio.com/docs/cpp/faq-cpp)What is the ipch folder?`"C_Cpp.intelliSenseCachePath": ``"C_Cpp.intelliSenseCacheSize": `
How do I disable the IntelliSense cache (ipch)?
又到了日常扣C盤的環(huán)節(jié)(系統(tǒng)緩存,qq,wx等緩存都清完了但是C盤還是小得有點(diǎn)可憐)。 持續(xù)性竭澤而漁。 在系統(tǒng)目錄下發(fā)現(xiàn)了一個(gè)vscode-cpptools, 其中的ipch竟然高達(dá)十幾個(gè)G C:\Users\(你的用戶名)\AppData\Local\Microsoft\vscode-cpptools 查詢官方文檔 C/C++ 擴(kuò)展常見(jiàn)問(wèn)題解答 (visualstudio.com) 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":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":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). 簡(jiǎn)而言之這是智能感知緩存的路徑,編輯C/C++ 文件時(shí),vscode的語(yǔ)言服務(wù)會(huì)將緩存文件存儲(chǔ)在該文件夾中(每編譯一次都對(duì)應(yīng)著ipch里的一個(gè)文件夾) 在vscode的設(shè)置中搜索C_Cpp.intelliSenseCache, 把目錄改到其他盤, 而在c盤中的緩存可以直接刪除(無(wú)異常情況) 如果不想使用智能感知緩存功能,可以通過(guò)將緩存大小設(shè)置設(shè)置為 0(或在 JSON 設(shè)置編輯器中)來(lái)禁用該功能。"C_Cpp.intelliSenseCacheSize": 0" 轉(zhuǎn)自:https://blog.csdn.net/qq_39391544/article/details/124620121 |
CopyRight 2018-2019 實(shí)驗(yàn)室設(shè)備網(wǎng) 版權(quán)所有 |