update vscode config so that headers can be found#231
Merged
haochengxia merged 2 commits intodevelopfrom Jun 25, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request updates the VSCode configuration to improve header file detection.
- Adds file association settings in .vscode/settings.json to map various header names to specific language modes.
- Introduces platform-specific configurations in .vscode/c_cpp_properties.json for Linux, macOS, and Windows.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .vscode/settings.json | Adds file association and various editor, cmake, and git settings. |
| .vscode/c_cpp_properties.json | Introduces compiler configuration with include paths and build settings. |
Comments suppressed due to low confidence (5)
.vscode/settings.json:4
- The header 'cmath' is a standard C++ header and is typically associated with 'cpp' rather than 'c'. Consider updating its language association to 'cpp' for correct IntelliSense behavior.
"cmath": "c",
.vscode/settings.json:5
- The header 'complex' is a C++ header and should likely be associated with 'cpp' instead of 'c'. Consider changing it to 'cpp' to ensure correct syntax processing.
"complex": "c",
.vscode/settings.json:19
- The header 'string' is part of the C++ standard library and associating it with 'c' may lead to incorrect language features. Consider updating this association to 'cpp'.
"string": "c",
.vscode/settings.json:20
- The header 'istream' is intended for C++ code. Changing its association from 'c' to 'cpp' could improve language support in VSCode.
"istream": "c",
.vscode/settings.json:21
- As 'streambuf' is a C++ component, associating it with 'c' may result in improper handling by VSCode. It is recommended to update its association to 'cpp'.
"streambuf": "c",
| "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" | ||
| }, | ||
| "cmake.generator": "Unix Makefiles", | ||
| "cmake.parallelJobs": 0, |
There was a problem hiding this comment.
Setting 'cmake.parallelJobs' to 0 disables parallel building, which might affect build performance. If parallel builds are desired, consider setting this to an appropriate positive integer.
Suggested change
| "cmake.parallelJobs": 0, | |
| "cmake.parallelJobs": 4, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
update vscode config so that headers can be found