Using C++ Development Tools with GitHub Copilot Chat
Refactoring and making updates in C++ code often requires tracking down edits across multiple files and having knowledge of your build configuration.
GitHub Copilot Chat can use the C++ tools built into VS Code to provide context-aware assistance for your C++ projects. By using code understanding and CMake tools, Copilot can understand your codebase structure, dependencies, and build configurations to give you more accurate, helpful, and fast responses.
This guide covers the available tools and how to use them effectively with AI agents to accomplish tasks such as:
- Navigate and understand complex C++ codebases
- Refactor code with full context awareness
- Configure and build projects efficiently
Prerequisites
- C/C++ DevTools extension
- C/C++ extension
- CMake Tools extension
These extensions are available as part of the C/C++ Extension Pack.
You can enable/disable any of these tools at any point by navigating to the Tools option in chat and selecting the respective tool you'd like to enable/disable.

Only enable relevant tools to your development workflow to avoid context bloat. You can disable other tools, such as tools installed through MCP, via the same dialog.
C++ code understanding tools
The C++ extension provides tools that use language services to give Copilot Chat deep understanding of your code structure, symbols, and relationships. Ensure you have configured with IntelliSense to take advantage of these tools.
To enable these tools, select the Enable Cpp Code Editing Tools setting in your VS Code user settings.

Get Symbol Information (GetSymbolInfo_CppTools)
What it does: Retrieves detailed information about symbols (functions, classes, variables, etc.) in your codebase, including their definitions, types, and documentation.
Example Use Case: Optimize memory performance and ensure non-breaking changes
