microsoft / microsoft/vscode-cpptools

Request: allow different C/C++ intelliSense configurations on the .code-workspace file

Open
#2,096 6 comments 29 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request Language Service
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Before the latest update of the C/C++ extension, the intelliSense configuration parameters (includePath, defines...) were defined in the C_Cpp_properties.json file. With the update, it is possible to define these parameters in the .code-workspace file, as C_Cpp.default.*, without a need for the C_Cpp_properties.json file. But this can only be done for one configuration (the default one). Therefore, if I have multiple configurations, I still need a C_Cpp_properties.json file.

I suggest that it should be allowed to define multiple configurations in the .code-workspace file, so that a C_Cpp_properties.json file is always optional.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how C_Cpp.default.* settings in the .code-workspace file are handled alongside C_Cpp_properties.json. Define how multiple configurations should be represented and selected, then verify that equivalent configurations work without requiring C_Cpp_properties.json.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.