microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.52k stars 1.55k forks source link

Document customConfigurationVariables property and cpptools.activeConfigCustomVariable command #6476

Open j-ulrich opened 3 years ago

j-ulrich commented 3 years ago

The c_cpp_properties.json file supports a customConfigurationVariables property and the plugin provides the cpptools.activeConfigCustomVariable command to access those custom configuration variables for example from the tasks.json. This allows a flexible integration of the C/C++ configurations with the VS Code Tasks.

However, neither the customConfigurationVariables property nor the related cpptools.activeConfigCustomVariable command are documented in the reference https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference.

Br0therM4ynard commented 3 years ago

Hi there - can anyone tell me how to use this activeConfigCustomVariable in the tasks or launch.json files?

sean-mcmanus commented 3 years ago

Currently, the only "docs" are at https://github.com/microsoft/vscode-cpptools/pull/5453 . This task is tracking adding better docs.