Skip to content

Commit d42bd18

Browse files
committed
add suggestion to disable header insertion to docs
1 parent 9d78f0a commit d42bd18

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

getting-started/ide-setup.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ Depending on which compiler you want to use, pick either:
5151
}
5252
```
5353

54+
Additionally, we recommend disabling clangd auto header insertion, as it doesn't work well with Geode and will spam useless headers in your project. Press F1 and run `Preferences: Open User Settings (JSON)` and add the following lines:
55+
```json
56+
"clangd.arguments": [
57+
"-header-insertion=never"
58+
],
59+
```
60+
5461
4. If instead of Clang you chose the **C/C++ extension**, you need to register CMake as the **Configuration Provider** for the C++ extension by pressing F1 and running `C/C++: Edit Configurations (UI)`. Scroll down to **Advanced** options, and set the Configuration Provider as `ms-vscode.cmake-tools`.
5562

5663
![Image showing the "C/C++: Edit Configurations (UI)" command being run in VS Code](/assets/win_usecmake.png)

0 commit comments

Comments
 (0)