With Portable Mode VSCode, where does the .ipch file get stored? #11681
-
With portable mode VSCode, https://code.visualstudio.com/docs/editor/portable, and installing cpptools extension, where do the .ipch file and other cpptools generated files get stored? Current official documentation, https://code.visualstudio.com/docs/cpp/faq-cpp#_what-is-the-ipch-folder, does not clarify this. It indicates where the temp files/folders will be generated (I assume) only in the "full" (as opposed to portable mode) VSCode installation, for e.g., Is it guaranteed that under portable mode VSCode, all generated cpptools files and folders (such as .ipch files/folders) will go into the portable mode VSCode installed folder only? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@TryerGit I don't know. We haven't tested with portable mode VS Code or written any special case code to handle that scenario. Can you try it out? You can change the C_Cpp.intelliSenseCachePath and the C_Cpp.default.browse.databaseFilename. |
Beta Was this translation helpful? Give feedback.
-
Related on Stack Overflow: How does VS Code portable mode interact with extensions and files generated by the extensions? |
Beta Was this translation helpful? Give feedback.
-
Cpptools is the only VS Code extension I know about that stores data outside the vscode data directory, which is especially unfortunate when VS Code is running in portable mode. Is there any chance you could move the cache directory from This is compounded by the fact that there's no simple way to actually move the whole cache directory:
|
Beta Was this translation helpful? Give feedback.
@TryerGit I don't know. We haven't tested with portable mode VS Code or written any special case code to handle that scenario. Can you try it out? You can change the C_Cpp.intelliSenseCachePath and the C_Cpp.default.browse.databaseFilename.