This Visual Studio Code extension, named C++ Include Manager, simplifies the management of include paths in your C++ projects. It reads from /.vscode/IncMan.json
file and updates the /.vscode/settings.json
file with the specified include paths.
- Automatically updates include paths based on the
IncMan.json
configuration. - Supports both standardized library paths eg
C:/Libraries/${lib}/include
and explicit library paths egC:\Program Files (x86)\OpenAL 1.1 SDK\include
.
- Install the extension from the Visual Studio Code Marketplace.
- Reload or restart Visual Studio Code to activate the extension.
Note: This extension only overwrites the C_Cpp.default.includePath
section of the settings.json
, all other settings will remain unchanged.
- Create an
IncMan.json
file in your project's.vscode
directory. - Configure the extension by updating the
libraryPath
setting in your Visual Studio Code settings. - Define standardized and explicit library inlclude paths in the
IncMan.json
file.
{
"standardized-libraries":["lib1", "lib2"],
"explicit-libraries":["path/to/ext_lib1", "path/to/ext_lib2"]
}
- The extension will automatically update the
settings.json
file when theIncMan.json
file changes.
- libraryPath: Template for library paths. Defaults to "C:/Libraries/${lib}/include".
- Error messages may appear in case of issues reading or writing configuration files.
- Initial Release
Feel free to contribute by reporting issues or submitting pull requests on GitHub