惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
博客园 - 司徒正美
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
量子位
罗磊的独立博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
小众软件
小众软件
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
大猫的无限游戏
大猫的无限游戏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
Simon Willison's Weblog
Simon Willison's Weblog
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园_首页
博客园 - 叶小钗
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
T
Tailwind CSS Blog
IT之家
IT之家
博客园 - 聂微东
Spread Privacy
Spread Privacy
V2EX - 技术
V2EX - 技术
S
Security Affairs
宝玉的分享
宝玉的分享
V
V2EX
C
Cisco Blogs
博客园 - Franky
美团技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
S
Securelist
J
Java Code Geeks
Webroot Blog
Webroot Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
WordPress大学
WordPress大学
W
WeLiveSecurity
T
Threatpost
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志

C++ Team Blog

MSVC Build Tools Preview updates - July 2026 - C++ Team Blog Rethinking C++ Performance: Faster Code Navigation and GitHub Copilot Tools with Whole Codebase Indexing - C++ Team Blog Pure Virtual C++ 2026 [Meet the Speakers, Part 2]: The AI-Native C++ Developer Workflow - C++ Team Blog Pure Virtual C++ 2026 [Meet the Speakers, Part 1]: Build Faster, Run Faster - C++ Team Blog What's New in vcpkg (June 2026) - C++ Team Blog Pure Virtual C++ 2026 Talks Announced - C++ Team Blog Save the Date: Pure Virtual C++ 2026 - C++ Team Blog Streamline C++ Code Intelligence Setup in Copilot CLI - C++ Team Blog Boosting Adobe Photoshop’s Performance with MSVC and SPGO - C++ Team Blog GitHub Copilot modernization for C++ is out of preview MSVC Build Tools Preview updates – June 2026 What’s New in vcpkg (May 2026) What’s New for C++ Developers in Visual Studio 2026 (18.1 – 18.6) Introducing Sample Profile Guided Optimization in MSVC NuGet PackageReference for C++ Projects in Visual Studio Segment Heap support for C++ projects in Visual Studio MSVC Build Tools Preview updates – May 2026 MSVC Build Tools version 14.51 (GA) now available Project-Specific Build Optimizations with GitHub Copilot What's New in vcpkg (Apr 2026) - C++ Team Blog Giving Copilot more C++ context using custom instructions in VS Code Take the 2026 ISO C++ Developer Survey! - C++ Team Blog MSVC Build Tools Version 14.51 Release Candidate Now Available C++23 Support in MSVC Build Tools 14.51 What’s New in vcpkg (Feb 2026 – Mar 2026): Parallel file installation and more! Visual Studio at GDC Festival of Gaming 2026 C++ Performance Improvements in MSVC Build Tools v14.51 C++ symbol context and CMake build configuration awareness for GitHub Copilot in VS Code Microsoft C++ (MSVC) Build Tools v14.51 Preview Released: How to Opt In What’s New in vcpkg (Nov 2025 – Jan 2026) MSVC Build Tools Versions 14.30 – 14.43 Now Available in Visual Studio 2026 GitHub Copilot app modernization for C++ is now in Public Preview Visual Studio Code CMake Tools 1.22: Target bookmarks and better CTest output
C++ Code Intelligence for GitHub Copilot CLI (Preview) - C++ Team Blog
Erika Sweet · 2026-04-23 · via C++ Team Blog

April 22nd, 2026

like2 reactions

Principal Product Manager

We recently brought C++ code understanding tools to GitHub Copilot in Visual Studio and VS Code. These tools provide precise, semantic understanding of your C++ code to GitHub Copilot using the same IntelliSense engine that powers code navigation in the IDE. Until now, these capabilities have been tied to GitHub Copilot in Visual Studio and VS Code. Today, we’re bringing this same intelligence to the CLI with the release of the Microsoft C++ Language Server for GitHub Copilot CLI, now available in Preview.

Why this matters

C++ is difficult for tools to reason about: complex include hierarchies, macros, templates, overloads, and build-system-dependent configurations mean that text search alone can give incomplete or misleading results. The Microsoft C++ Language Server provides the GitHub Copilot CLI with precise semantic data – including symbol definitions, references, call hierarchies, and type information – to complement grep-style search. Let’s look at an example using {fmt}, an open-source formatting library.

Example scenario

I want to create a custom fmt formatter for the following internal type:

enum class LogLevel {info, warning, error};

One way to define a custom formatter is to inherit from an existing formatter. I want Copilot to provide a summary of all base formatters that are available to inherit from and a recommendation for which one I should use.

With the Microsoft C++ Language Server enabled, Copilot:

1. Uses workspace symbol search to find existing formatters in the fmt library

A screenshot of the Copilot CLI using the Microsoft C++ Language Server to search the workspace for a symbol.

2. Uses go to definition on key base classes

A screenshot of the Copilot CLI using the Microsoft C++ Language Server to go to definition.

3. Summarizes all existing formatters, their purpose, and a recommendation

In contrast, without the Microsoft C++ Language Server enabled, Copilot uses iterative grep searches to build its understanding of potentially relevant code.

A screenshot of the Copilot CLI calling grep twice in a row.

Then, instead of jumping to the definition of key base classes, it uses grep on the class name, which returns all instances of those types across the codebase to filter through.

A screenshot of the Copilot CLI calling grep on basic_ostream_formatter.

In this example, the precision of LSP protects against the retrieval of irrelevant results.

Getting started with the Microsoft C++ Language Server

The Microsoft C++ Language Server is available in Preview as a npm package. It runs on Windows, Linux, and macOS. Check out the quick start guide in the README of our corresponding issue-only GitHub repository to get started. An active GitHub Copilot subscription is required.

The Microsoft C++ Language Server requires:

  • Authenticating with the GitHub Copilot CLI
  • Creating a compile_commands.json file for your project
  • Configuring your project for use with the GitHub Copilot CLI

Our issue-only GitHub repository contains a skill to automate steps #2-3 for CMake projects and instructions to walk through the process yourself. For MSBuild (vcxproj) users, we’ve created a sample application to help extract compile_commands.json from C++ MSBuild projects. Integrated support for C++ MSBuild projects is planned for a future release.

Different models are more or less likely to call the C++ LSP. For best results, we recommend appending something like “Use the C++ LSP” to the end of your queries or creating a custom instructions file to prefer the C++ LSP.

Share your feedback

The Microsoft C++ Language Server is available in Preview for early feedback. To report a problem or suggest an improvement, follow these instructions to open an issue.

Category

Author

Erika Sweet

Principal Product Manager

Erika is a Product Manager on the C++ team. She likes math and mystery novels.