This extension allows you to view C++ Insights inside of vscode:
or diff the Insights with your original source:
The extension can utilize a compilation database/compile commands for easy use in existing environments. You can specify a directory containing the compilation database, aka the build directory, with vscode-cppinsights.buildDirectory
.
If the active file is part of a workspace, and vscode-cppinsights.buildDirectoryPrioritizeCMake
is set, the cmake.buildDirectory
is used to determine the build directory.
This extension requires @andreasfertig's C++ Insights.
C++ Insights can be found here:
https://github.com/andreasfertig/cppinsights.
Build or download the latest release and specify the path to the cppinsights binary in vscode-cppinsights.path
.
vscode-cppinsights.insights
: Show C++ insightsvscode-cppinsights.insightsDiff
: Show C++ insights diff with original
This extension contributes the following settings: (You can find descriptions in the settings UI)
vscode-cppinsights.path
vscode-cppinsights.buildDirectory
vscode-cppinsights.buildDirectoryPrioritizeCMake
vscode-cppinsights.args
vscode-cppinsights.format
vscode-cppinsights.experimental
If you want to contribute, have an idea for a feature, or want to report an issue, please visit the GitHub repository.
- Using Microsoft/Visual Studio STL with C++ Insights might report "#error STL1000: Unexpected compiler version". You can define _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH (before any includes) as a workaround (C++ Insights Issue).
- Enabling the option disables the "preview" property of the output editor
- When using the
insightsDiff
command, the output is not formatted like the original source