AIニュース最前線
最新ニュースAI日報Hacker日報週報動画AIツールトレンド企業

AIニュース最前線

世界中のAI最新情報を日本語で毎時更新

最新ニュース日報トレンド企業プレミアムRSS
© 2026 ainew.jp特定商取引法に基づく表記
ニュース一覧元記事を開く
GitHub Changelog·2026年4月22日 16:00·約3分で読める

GitHub Copilot CLI向けC++コードインテリジェンスが公開プレビュー開始

#GitHub Copilot#C++#Language Server Protocol (LSP)#CLI開発ツール#Microsoft
TL;DR

MicrosoftはGitHub Copilot CLI向けにC++言語サーバーを公開プレビューとして提供し、コマンドライン環境でもIDE同等の高度なコード解析とインテリセンス機能を利用可能にした。

AI深層分析2026年4月23日 03:35
3
注目/ 5段階
深度40%
3
関連度30%
4
実用性20%
4
革新性10%
3

キーポイント

1

CLI環境でのセマンティック解析の実現

Visual StudioおよびVS Codeと同じインテリセンスエンジンを採用し、マクロやテンプレートなど複雑なC++コードの定義・参照・型情報をコマンドラインから直接取得可能にした。

2

grep依存からの脱却と補完精度の向上

従来のテキスト検索に頼る方式から、ワークスペース記号検索や定義ジャンプを活用し、関連コードの正確な理解とAI補完の精度を大幅に向上させる。

3

セットアップ要件とビルドシステム対応

npmパッケージとして提供され、GitHub Copilotサブスクリプションとcompile_commands.jsonの作成が必要。CMakeプロジェクトは自動処理スキルの提供、MSBuildはサンプルアプリで対応し、将来的なネイティブ統合も計画されている。

影響分析・編集コメントを表示

影響分析

本機能は、C++開発者がコマンドライン環境でもIDE同等の精度でAI補完を利用できることを示し、開発ツールのアクセシビリティと作業効率を一段階引き上げる。特に大規模なC++コードベースの保守やスクリプト自動化において、AIアシスタントの実用性が大幅に向上する。今後はMSBuildのネイティブサポートや他の言語への展開が期待される。

編集コメント

開発者向けCLIツールのAI補完精度を言語サーバーで強化する取り組みは、現場の作業効率に直結する実用的な改善である。今後はビルドシステムとの統合深化や、他の言語への展開が次の注目点となるだろう。

Microsoft C++ Language Server が Copilot CLI のパブリックプレビューとして提供開始されました。Visual Studio や VS Code で使用されているのと同じインテリセンス (IntelliSense) エンジンによって駆動され、統合開発環境 (IDE) の枠を超えてコマンドラインにも正確なセマンティックデータ (semantic data) ベースの C++ コードインテリジェンスを提供します。

なぜこれが重要なのか

C++ はツールが推論を行う上で特に困難な言語です。複雑な include 階層、マクロ、テンプレート、ビルドシステム依存の設定により、テキスト検索だけでは不十分な結果しか得られません。C++ Language Server は Copilot に正確なセマンティックデータ (semantic data)(すなわち、シンボル定義、参照、コール階層、型情報)を提供し、grep スタイルの検索を補完します。

例えば、言語サーバーを使用する場合、Copilot はワークスペースシンボル検索と定義へ移動 (go-to-definition) 機能を利用して、関連コードを直接見つけ理解します。これがない場合、Copilot は反復的な grep 検索にフォールバックし、コードベース全体から無関係な結果を返すことがあります。

image
image

始め方

Microsoft C++ Language Server は、npm パッケージ (npm package) としてプレビュー版で提供されています。対応する issue-only(イシューのみ)の GitHub リポジトリにある README のクイックスタートガイドを確認してご利用ください。有効な GitHub Copilot サブスクリプションが必要です。

Microsoft C++ Language Server の要件は以下の通りです:

GitHub Copilot CLI による認証

プロジェクト用の compile_commands.json の作成

CLI での使用に向けたプロジェクト設定

issue-only の GitHub リポジトリには、CMake プロジェクト向けに第2および第3の要件を自動的に処理するスキルが含まれており、さらに手順を追って自分で設定するためのガイドも記載されています。

MSBuild ユーザー向けには、C++ MSBuild プロジェクトから compile_commands.json を抽出するのを支援するサンプルアプリケーションを作成しました。MSBuild の統合サポートは今後のリリースで予定されています。

ヒント:最適な結果を得るには、クエリに「Use the C++ LSP」を付加するか、C++ LSP(Language Server Protocol)を優先するカスタム指示ファイルを作成してください。

フィードバック

問題の報告や改善提案を行う場合は、GitHub リポジトリでイシューを開いてください。

「GitHub Copilot CLI 向け C++ コードインテリジェンスがパブリックプレビューで提供開始」の記事は、The GitHub Blog に最初に掲載されました。

原文を表示

The Microsoft C++ Language Server is now available in public preview for the Copilot CLI. Powered by the same IntelliSense engine used in Visual Studio and VS Code, it extends precise, semantic C++ code intelligence beyond the IDE to the command line.

Why this matters

C++ is uniquely difficult for tools to reason about. Complex include hierarchies, macros, templates, and build-system-dependent configurations mean text search alone gives incomplete results. The C++ Language Server provides Copilot with precise semantic data (i.e., symbol definitions, references, call hierarchies, and type information) to complement grep-style search.

For example, with the language server, Copilot uses workspace symbol search and go-to-definition to find and understand relevant code directly. Without it, Copilot falls back to iterative grep searches, which can return irrelevant results across the codebase.

image
image

Getting started

The Microsoft C++ Language Server is available in preview as an npm package. 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 for your project

Configuring your project for use with the CLI

Our issue-only GitHub repository contains a skill that automatically handles the second and third requirement for CMake projects, as well as instructions to walk through the process yourself.

For MSBuild users, we’ve created a sample application to help extract compile_commands.json from C++ MSBuild projects. Integrated MSBuild support is planned for a future release.

Tip: For best results, append “Use the C++ LSP” to your queries or create a custom instructions file to prefer the C++ LSP.

Feedback

To report a problem or suggest an improvement, open an issue in our GitHub repository.

The post C++ code intelligence for GitHub Copilot CLI in public preview appeared first on The GitHub Blog.

この記事をシェア

関連記事

Simon Willison Blog★42026年4月22日 12:30

「GitHub Copilot 個人向けプランの変更」

GitHubは、AnthropicのClaude Code価格混乱と対照的に、公式にGitHub Copilot個人向けプランの価格改定を発表した。

TLDR AI★42026年6月3日 09:00

GitHub のエージェント戦略(90 分読み)

GitHub は、コードの大量出荷によりインフラに圧力がかかっているため、人間速度を前提とした設計から AI エージェント時代に対応する方針を COO が説明している。

The Verge AI★42026年6月3日 03:12

マイクロソフト、初の高度な推論型 AI「MAI-Thinking-1」を発表

マイクロソフトは Build 2026 で自社開発の最新モデル「MAI-Thinking-1」を発表し、OpenAI 依存から脱却して独自モデル開発に本格的に着手した。

ニュース一覧に戻る元記事を読む