Microsoft has enhanced the C++ development experience in GitHub Copilot for Visual Studio Code, adding advanced language and build-system intelligence that brings AI-assisted coding closer to native tooling capabilities. The update enables Copilot to operate with the same symbol-level insight and CMake configuration awareness previously available only through Microsoft’s dedicated C/C++ and CMake extensions.
Announced on February 19, the improvements allow Copilot’s agent mode to interact directly with structured C++ project data instead of relying primarily on basic text or file searches. By exposing internal tooling capabilities as callable functions, Microsoft has effectively grounded Copilot’s responses in the same project context developers already depend on inside VS Code.
Symbol-level understanding across entire workspaces
With the update, Copilot can now analyze C++ code at the level of symbols — such as functions, classes, and variables — throughout an entire workspace. This enables more intelligent navigation, editing, and refactoring operations that account for relationships within the codebase.
Through integration with the C/C++ DevTools extension (included in the C/C++ Extension Pack for VS Code), Copilot Chat can perform several advanced tasks:
- Retrieve detailed definitions for specific C++ symbols, including metadata and source locations
- Identify every reference to a symbol across the project
- Display call hierarchies to clarify how functions interact, including both incoming and outgoing calls
To activate these capabilities, developers must enable the “Enable Cpp Code Editing Tools” option in their VS Code settings.
Native CMake build integration
Beyond code comprehension, Microsoft has expanded Copilot’s functionality to include awareness of active CMake configurations. Instead of executing generic command-line instructions, Copilot now works directly with the build settings selected in the editor via the CMake Tools extension.
This integration ensures that build and test actions initiated through Copilot align precisely with the developer’s chosen targets, presets, and active configuration. The result is a more reliable and context-aware workflow.
Copilot Chat can currently perform the following CMake-related operations:
- Trigger a build using the project’s active CMake configuration
- Execute CTest suites associated with the current setup
- Display available build targets within a CMake project
- List configured CTest test cases
Toward more reliable AI-assisted C++ development
By embedding structured language and build context directly into Copilot’s agent mode, Microsoft aims to reduce inconsistencies in AI-generated code suggestions and automation steps. Instead of functioning as an isolated text-based assistant, Copilot now operates with awareness of the same project intelligence developers use daily, improving precision and workflow continuity for complex C++ projects.
Image by DC Studio on Freepik

