vscode-cpptools

microsoft活跃维护

微软官方 VS Code C/C++ 扩展,为 VS Code 提供 IntelliSense 智能补全、代码导航和调试能力,让 C/C++ 开发更顺手。

Official repository for the Microsoft C/C++ extension for VS Code.

v1.35.6发布于 2026-11-02 23:06 UTC6,180star +1 / 7 天1,743fork同步于 2026-11-10 05:34 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

5 个版本v1.35.6
  1. v1.35.61.35.6最新正式版2026-11-02 · 2026-11-02 23:06 UTC

    Instructions

    The extension can be obtained by one of the methods below:

    • Install the "C/C++" or "C/C++ Extension Pack" extension published by Microsoft from the Extensions view in VS Code.
    • Download a vsix that matches your OS from the Assets section below (and install it via the method mentioned above). The previous download methods have the vsix signatures verified by the Marketplace, but for this method, you can do the verification by downloading the matching manifest and signature.p7s file and running npx @vscode/vsce@latest verify-signature -i <.vsix> -m <.signature.manifest> -s <.signature.p7s> vscode-vsce#1044.

    Requirements

    • VS Code 1.77.0 or later (March 2023).
    • Windows 10+ (x64, arm64), macOS 10.13+, Linux (Ubuntu 16+, etc.).
      • Debugging is not supported on CentOS 7 or RHEL 7. The last supported version was 1.22.11: #13219.
      • The last supported version for Windows 7 and 8 was 1.30.5.

    Changes

    New Features

    • Add the opt-in C_Cpp.hoverShowIntegralValuesInHexadecimal setting to display integral constants in hexadecimal in IntelliSense hovers. #7281
    • Add 'Fold All Inactive Regions' and 'Unfold All Inactive Regions' commands and the opt-in C_Cpp.autoFoldInactiveRegions setting. #8992
    • Dim unused local variables and parameters when editor.showUnused is enabled. #10490
    • Dim unreachable code when editor.showUnused is enabled. #12902
    • Show C++ type size and alignment in hovers, with the C_Cpp.hoverShowTypeSizeAndAlignment setting and 'Toggle Type Size and Alignment in Hovers' command to control them. #13034, #14820
    • Add the 'Select a Translation Unit...' command to choose which source file provides IntelliSense context for the active header file. PR #14688
    • Add the opt-in C_Cpp.codeAnalysis.clangTidy.includeCleanerMappings setting to map misc-include-cleaner symbols to public headers. PR #14788
    • Dim unused #include directives when editor.showUnused is enabled, respecting per-file Include Cleanup preferences from .editorconfig files. PR #14808

    Enhancements

    • Add support for formatting multiple selections with clang-format and vcFormat. #12082
    • Improve IntelliSense responsiveness in multi-root workspaces that use independent compile_commands.json databases.
    • Increase the per-file IntelliSense diagnostic limit from 250 to 1,000 and prioritize errors over unused-code hints.
    • Improve IntelliSense configuration lookup performance for symbolic links to compile_commands.json.
    • Reduce language server memory usage in workspaces with many interconnected symbolic links.
    • Reduce custom-configuration processing overhead in workspaces with many requested files.
    • Improve workspace indexing performance by reducing repeated language-mode processing.
    • Improve code folding performance in files with many inactive preprocessor regions.
    • Update the bundled clang-tidy and clang-format from 23.1.0 to 23.1.1.
    • Reduce CPU usage when resolving headers in large Windows workspaces.
    • Improve performance when pruning large IntelliSense caches.

    Bug Fixes

    • Fix /U and -U compiler arguments not undefining macros for IntelliSense and code analysis. [#13786](https://githu
  2. v1.35.51.35.5 (release candidate)pre-release2026-10-28 · 2026-10-28 02:14 UTC
    查看更新说明

    Instructions

    The extension can be obtained by one of the methods below:

    • Install the "C/C++" or "C/C++ Extension Pack" extension published by Microsoft from the Extensions view in VS Code.
    • Download a vsix that matches your OS from the Assets section below (and install it via the method mentioned above). The previous download methods have the vsix signatures verified by the Marketplace, but for this method, you can do the verification by downloading the matching manifest and signature.p7s file and running npx @vscode/vsce@latest verify-signature -i <.vsix> -m <.signature.manifest> -s <.signature.p7s> vscode-vsce#1044.

    Requirements

    • VS Code 1.77.0 or later (March 2023).
    • Windows 10+ (x64, arm64), macOS 10.13+, Linux (Ubuntu 16+, etc.).
      • Debugging is not supported on CentOS 7 or RHEL 7. The last supported version was 1.22.11: #13219.
      • The last supported version for Windows 7 and 8 was 1.30.5.

    Changes

    Bug Fixes

    • Fix false IntelliSense errors after rapidly replacing a file with a code snippet. #14807
    • Fix false IntelliSense redeclaration errors for class template deduction guides. #14824
    • Fix incorrect IntelliSense types after including stdatomic.h with MSVC C11 atomics enabled. #14825
    • Make parameter-name inlay hint suppression case-insensitive. #14829
    • Fix workspace symbol navigation using resolved paths instead of symlinked workspace paths, and preserve path casing.
    • Fix Doxygen commands inside literal and diagram blocks being misinterpreted as documentation tags.
    • Fix an IntelliSense crash when processing macro arguments in member-function declarations.
    • Fix workspace indexing for C11 atomics and other valid C language tokens.
    • Fix a language server crash when browse database initialization fails.
    • Various localization updates.
  3. v1.35.41.35.4pre-release2026-10-16 · 2026-10-16 00:07 UTC
    查看更新说明

    Instructions

    The extension can be obtained by one of the methods below:

    • Install the "C/C++" or "C/C++ Extension Pack" extension published by Microsoft from the Extensions view in VS Code.
    • Download a vsix that matches your OS from the Assets section below (and install it via the method mentioned above). The previous download methods have the vsix signatures verified by the Marketplace, but for this method, you can do the verification by downloading the matching manifest and signature.p7s file and running npx @vscode/vsce@latest verify-signature -i <.vsix> -m <.signature.manifest> -s <.signature.p7s> vscode-vsce#1044.

    Requirements

    • VS Code 1.77.0 or later (March 2023).
    • Windows 10+ (x64, arm64), macOS 10.13+, Linux (Ubuntu 16+, etc.).
      • Debugging is not supported on CentOS 7 or RHEL 7. The last supported version was 1.22.11: #13219.
      • The last supported version for Windows 7 and 8 was 1.30.5.

    Changes

    New Features

    • Add the opt-in C_Cpp.hoverShowIntegralValuesInHexadecimal setting to display integral constants in hexadecimal in IntelliSense hovers. #7281
    • Add the opt-in C_Cpp.codeAnalysis.clangTidy.includeCleanerMappings setting to map misc-include-cleaner symbols to public headers. PR #14788
    • Dim unused #include directives when editor.showUnused is enabled, respecting per-file Include Cleanup preferences from .editorconfig files. PR #14808

    Enhancements

    • Add the C_Cpp.hoverShowTypeSizeAndAlignment setting and 'Toggle Type Size and Alignment in Hovers' command to hide or show type size and alignment in IntelliSense hovers. #14820
    • Improve IntelliSense responsiveness in multi-root workspaces that use independent compile_commands.json databases.
    • Improve processing performance for long multiline documentation comments.

    Bug Fixes

    • Fix incorrect IntelliSense constructibility results and diagnostics for inherited constructors with unusable base constructors or destructors and abstract classes with virtual bases.
    • Fix IntelliSense crashes involving precompiled headers, constexpr evaluation, C++20 requires expressions, SFINAE, and incomplete nested class declarations.
    • Fix false IntelliSense errors for nested C++20 requires expressions and fold-expression constraints in MSVC module templates.
    • Fix stale IntelliSense diagnostics and inconsistent document snapshots during concurrent edits and requests.
    • Fix tag parsing of user-defined literal operator suffixes when macro expansion is involved.
    • Fix completion for declarations imported from standard-library modules when using MSVC.
    • Fix 'Create Declaration/Definition' matching for functions in the global namespace.
    • Fix IntelliSense lookup for scoped enumerations defined inside class templates.
    • Fix inconsistent fuzzy completion matching caused by reused candidate buffers.
    • Fix IntelliSense language-standard detection for MSVC /std:c++23.
    • Fix a potential data race in include-path resolution.
    • Various localization updates.
    • Update dependencies.
  4. v1.35.31.35.3pre-release2026-10-05 · 2026-10-05 19:12 UTC
    查看更新说明

    Instructions

    The extension can be obtained by one of the methods below:

    • Install the "C/C++" or "C/C++ Extension Pack" extension published by Microsoft from the Extensions view in VS Code.
    • Download a vsix that matches your OS from the Assets section below (and install it via the method mentioned above). The previous download methods have the vsix signatures verified by the Marketplace, but for this method, you can do the verification by downloading the matching manifest and signature.p7s file and running npx @vscode/vsce@latest verify-signature -i <.vsix> -m <.signature.manifest> -s <.signature.p7s> vscode-vsce#1044.

    Requirements

    • VS Code 1.77.0 or later (March 2023).
    • Windows 10+ (x64, arm64), macOS 10.13+, Linux (Ubuntu 16+, etc.).
      • Debugging is not supported on CentOS 7 or RHEL 7. The last supported version was 1.22.11: #13219.
      • The last supported version for Windows 7 and 8 was 1.30.5.

    Changes

    New Features

    • Add 'Fold All Inactive Regions' and 'Unfold All Inactive Regions' commands and the opt-in C_Cpp.autoFoldInactiveRegions setting. #8992
    • Dim unreachable code when editor.showUnused is enabled. #12902
    • Show C++ type size and alignment in hovers. #13034

    Enhancements

    • Increase the per-file IntelliSense diagnostic limit from 250 to 1,000, prioritize errors over unused-code hints, and reduce processing of over-limit diagnostics.
    • Improve IntelliSense performance in large include graphs and classes with many inherited constructors.
    • Reduce custom-configuration processing overhead and memory retained from compile_commands.json.
    • Improve code folding performance in files with many inactive preprocessor regions.
    • Improve loading performance for Windows-1255 and Windows-1258 source files.
    • Reduce CPU usage when resolving headers in large Windows workspaces.

    Bug Fixes

    • Fix 'Go to Declaration' and 'Go to Definition' returning the current location instead of an available counterpart. #14509
    • Update MIEngine to fix debugger failures with synthetic GDB stack frames. #14741
    • Fix incorrect IntelliSense errors for alias-template deduction guides using C++26 pack indexing. #14794
    • Fix incorrect unused-parameter warnings and dimming for assignments through reference parameters. #14801
    • Fix missing IntelliSense headers with Clang -cxx-isystem and -stdlib++-isystem options and split clang-cl -imsvc and /imsvc arguments.
    • Fix IntelliSense crashes involving deduction guides, user-defined conversions, and lambdas in macros.
    • Fix IntelliSense handling of GCC --embed-directory=<dir> and --embed-directory <dir> arguments.
    • Fix a tag parser stack-overflow crash when loading cyclic or excessively deep cached symbol data.
    • Fix unwanted completion popups when typing incomplete floating-point exponents.
    • Fix configuration-provider requests delaying language server shutdown.
    • Various localization updates.
    • Update dependencies.
  5. v1.35.21.35.2pre-release2026-09-22 · 2026-09-22 21:35 UTC
    查看更新说明

    Instructions

    The extension can be obtained by one of the methods below:

    • Install the "C/C++" or "C/C++ Extension Pack" extension published by Microsoft from the Extensions view in VS Code.
    • Download a vsix that matches your OS from the Assets section below (and install it via the method mentioned above). The previous download methods have the vsix signatures verified by the Marketplace, but for this method, you can do the verification by downloading the matching manifest and signature.p7s file and running npx @vscode/vsce@latest verify-signature -i <.vsix> -m <.signature.manifest> -s <.signature.p7s> vscode-vsce#1044.

    Requirements

    • VS Code 1.77.0 or later (March 2023).
    • Windows 10+ (x64, arm64), macOS 10.13+, Linux (Ubuntu 16+, etc.).
      • Debugging is not supported on CentOS 7 or RHEL 7. The last supported version was 1.22.11: #13219.
      • The last supported version for Windows 7 and 8 was 1.30.5.

    Changes

    New Feature

    • Dim unused local variables and parameters when editor.showUnused is enabled. #10490

    Enhancements

    • Add support for formatting multiple selections with clang-format and vcFormat. #12082
    • Reduce language server memory usage in workspaces with many interconnected symbolic links.
    • Improve responsiveness when deleting source files associated with many open headers.
    • Improve #include completion performance in workspaces with many open files.

    Bug Fixes

    • Fix IntelliSense handling of MSVC and clang-cl external include paths and environment variables. #14186, #14205
    • Fix missing IntelliSense definitions for additional MSVC predefined macros. #14312
    • Fix lost indentation in displayed documentation comments. #14567
    • Fix compiler queries failing to find dependencies installed alongside the compiler on Linux and macOS. #14575
    • Fix an incorrect class has more than one default constructor IntelliSense error. #14746
    • Fix the extension failing to start on Linux ARM64 because libc.so is not executable. #14779
    • Fix incorrect or missing #include completion suggestions for nonrecursive paths, frameworks, symbolic links, and extensionless files.
    • Fix compile_commands.json handling for symlinked sources, missing working-directory fields, and invalid database roots.
    • Fix stale 'Create Declaration/Definition' diagnostics after cancellation and reduce redundant diagnostic updates.
    • Fix missing IntelliSense errors for duplicate local variables, including redeclarations of function parameters.
    • Fix a language server crash when requesting #include completion with certain Unicode prefixes.
    • Fix incorrect undefined-identifier IntelliSense errors for macros using __COUNTER__ in C++20.
    • Fix recursive header lookup with duplicate include roots or .. paths through symbolic links.
    • Fix incorrect EUC-JP and GBK source decoding when multibyte characters span read buffers.
    • Fix IntelliSense using strict language modes instead of Clang's default GNU dialect.
    • Fix header lookup for long Windows paths when Windows long-path support is enabled.
    • Fix a Windows tag parser crash when a worker thread cannot be created.
    • Fix intermittent incorrect compiler architecture detection on Linux.
    • Various localization updates.
    • Update

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    C/C++ for Visual Studio Code

    Repository  |  Issues  |  Documentation  |  Code Samples

    Badge

    The C/C++ extension adds language support for C/C++ to Visual Studio Code, including editing (IntelliSense) and debugging features.

    Pre-requisites

    C++ is a compiled language meaning your program's source code must be translated (compiled) before it can be run on your computer. VS Code is first and foremost an editor, and relies on command-line tools to do much of the development workflow. The C/C++ extension does not include a C++ compiler or debugger. You will need to install these tools or use those already installed on your computer.

    • C++ compiler pre-installed
    • C++ debugger pre-installed

    Here is a list of compilers and architectures per platform officially supported by the extension. These are reflected by the available IntelliSense modes from the extension's IntelliSense configuration. Note that support for other compilers may be limited.

    PlatformCompilersArchitectures
    WindowsMSVC, Clang, GCCx64, x86, arm64, arm
    LinuxClang, GCCx64, x86, arm64, arm
    macOSClang, GCCx64, x86, arm64

    For more information about installing the required tools or setting up the extension, please follow the tutorials below.

    Overview and tutorials

    C/C++ extension tutorials per compiler and platform

    Quick links

    Questions and feedback

    FAQs Check out the FAQs before filing a question.

    Provide feedback File questions, issues, or feature requests for the extension.

    Known issues If someone has already filed an issue that encompasses your feedback, please leave a 👍 or 👎 reaction on the issue to upvote or downvote it to help us prioritize the issue.

    Quick survey Let us know what you think of the extension by taking the quick survey.

    Contribution

    Contributions are always welcome. Please see our contributing guide for more details.

    Microsoft Open Source Code of Conduct

    This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

    Data Collection

    The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry via the same setting provided by Visual Studio Code: "telemetry.enableTelemetry". Our privacy statement is located here. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

    Trademarks

    This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.