Skip to content

Commit 01c86ca

Browse files
committed
Fix RAM disk FAQ formatting and add Linux/Windows examples
1 parent edaeea8 commit 01c86ca

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/cpp/faq-cpp.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,25 @@ By default, the cache lives under your user cache directory (Windows: `%LocalApp
102102
diskutil erasevolume APFS "vsc-ipch" $(hdiutil attach -nomount ram://8388608)
103103
# Then set: "C_Cpp.intelliSenseCachePath": "/Volumes/vsc-ipch/cpptools-ipch"
104104
# Optionally: "C_Cpp.intelliSenseCacheSize": 2048
105+
```
106+
107+
**Linux (tmpfs, ~4 GB):**
108+
```bash
109+
sudo mkdir -p /mnt/vsc-ipch
110+
sudo mount -t tmpfs -o size=4G,mode=1777 tmpfs /mnt/vsc-ipch
111+
# Then set: "C_Cpp.intelliSenseCachePath": "/mnt/vsc-ipch/cpptools-ipch"
112+
```
113+
114+
115+
**Windows:**
116+
Windows doesn’t include a built-in RAM disk. If allowed, create one (for example with ImDisk) and set:
117+
```json
118+
"C_Cpp.intelliSenseCachePath": "R:\\vscode-cpptools\\ipch",
119+
"C_Cpp.intelliSenseCacheSize": 2048
120+
121+
```
122+
123+
105124

106125

107126
## How do I set up debugging?

0 commit comments

Comments
 (0)