GitHub Copilot CLI: C++ Language Server Auto-Configures MSBuild Projects

GitHub CopilotView original changelog

The Microsoft C++ Language Server for GitHub Copilot CLI now bundles its MSBuild compile commands extractor and runs it automatically when a project opens. Copilot no longer needs a separate configuration skill or a hand-written compile_commands.json to get code intelligence such as go-to-definition and find references in MSBuild-based C++ projects. GitHub says this cuts setup time and token usage.

Key Takeaways

  • The C++ language server for Copilot CLI now bundles and auto-runs its MSBuild compile commands extractor when a project opens.
  • Developers no longer need a configuration skill or a hand-made compile_commands.json to get code intelligence on MSBuild projects.
  • Features like go-to-definition and find references are available from the start of a session.
  • Generating the compilation database is deterministic, which GitHub says reduces setup time and token usage.
  • CMake and custom build systems are not auto-configured: CMake users ask Copilot CLI to "load project", and others use a custom extractor skill or their own compile_commands.json.
  • Using it requires an active Copilot subscription, installing the plugin and accepting the EULA.

Code Intelligence for MSBuild C++ Projects Without Setup

GitHub updated the Microsoft C++ Language Server for GitHub Copilot CLI so that it now bundles its MSBuild compile commands extractor and runs it automatically. Previously, features such as go-to-definition and find references needed either a user-supplied compile_commands.json file or a configuration skill that Copilot had to find and run first. That extra step added setup time and consumed tokens before the agent could do useful work.

What Changes in Practice

The extractor is now always available. Copilot invokes it when the language server starts as a project opens, and the compilation database for MSBuild projects is generated deterministically. Because no agent reasoning is needed to produce it, GitHub says setup token usage drops. Developers working on MSBuild-based C++ code get code intelligence from the start of a session.

Other Build Systems

MSBuild is the only build system covered by this automation. For CMake projects, developers can ask Copilot CLI to "load project" to use the generate compile commands skill from an earlier release. For custom build systems, GitHub points to a guide for creating a custom build extractor skill, and developers can also supply their own compile_commands.json.

Getting Started

Developers install the plugin by following the Microsoft C++ Language Server quick start and accepting the EULA. An active GitHub Copilot subscription is required.