https://github.com/microsoft/vscode-cpptools
Official repository for the Microsoft C/C++ extension for VS Code.
https://github.com/microsoft/vscode-cpptools
microsoft typescript vscode-extension
Last synced: 6 months ago
JSON representation
Official repository for the Microsoft C/C++ extension for VS Code.
- Host: GitHub
- URL: https://github.com/microsoft/vscode-cpptools
- Owner: microsoft
- License: other
- Created: 2016-03-26T21:26:30.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-05-12T07:07:15.000Z (6 months ago)
- Last Synced: 2025-05-12T15:24:09.325Z (6 months ago)
- Topics: microsoft, typescript, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 56.2 MB
- Stars: 5,787
- Watchers: 219
- Forks: 1,592
- Open Issues: 1,406
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-list - vscode-cpptools - Official repository for the Microsoft C/C++ extension for VS Code. (Cross-Platform / JavaScript)
- awesome-list - vscode-cpptools
- StarryDivineSky - microsoft/vscode-cpptools - cpptools)是一款专为 C/C++ 开发者设计的智能编程工具,旨在提升代码编辑效率与开发体验。该扩展通过集成微软自研的 C/C++ 语言服务器(基于 clangd 实现),为 VS Code 提供代码导航、智能补全、实时错误检查、调试支持等核心功能。其工作原理基于语言服务器协议(LSP),通过 clangd 解析代码结构,实现跨平台的语法分析、代码理解与功能扩展。开发者可借助该工具快速定位函数定义、跳转到声明位置,并通过上下文感知的代码补全减少输入负担。项目支持多种构建工具,包括 CMake 和 Makefile,可自动识别项目配置并适配不同编译器环境。调试功能通过集成 GDB 或 LLDB 调试器,允许用户在 VS Code 内部进行断点调试与变量监视。此外,该扩展通过 c_cpp_properties.json 配置文件支持自定义编译器路径、包含路径和宏定义,满足复杂项目需求。项目持续由微软团队维护,社区活跃度高,文档齐全且提供示例项目,适用于 Windows、macOS 和 Linux 平台。其核心优势在于对 C/C++ 语言的深度支持,结合 VS Code 的轻量级编辑器特性,成为开发者日常开发的必备工具。 (编辑器 / 资源传输下载)
README
# C/C++ for Visual Studio Code
#### [Repository](https://github.com/microsoft/vscode-cpptools) | [Issues](https://github.com/microsoft/vscode-cpptools/issues) | [Documentation](https://code.visualstudio.com/docs/languages/cpp) | [Code Samples](https://github.com/microsoft/vscode-cpptools/tree/main/Code%20Samples)
[](https://aka.ms/vsls)
The C/C++ extension adds language support for C/C++ to Visual Studio Code, including [editing (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide) and [debugging](https://code.visualstudio.com/docs/cpp/cpp-debug) 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](https://code.visualstudio.com/docs/cpp/configure-intellisense-crosscompilation#_intellisense-mode) from the extension's IntelliSense configuration. Note that support for other compilers may be limited.
Platform | Compilers | Architectures
:--- | :--- | :---
Windows | MSVC, Clang, GCC | x64, x86, arm64, arm
Linux | Clang, GCC | x64, x86, arm64, arm
macOS | Clang, GCC | x64, 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 overview](https://code.visualstudio.com/docs/languages/cpp)
* [Introductory Videos](https://code.visualstudio.com/docs/cpp/introvideos-cpp)
C/C++ extension tutorials per compiler and platform
* [Microsoft C++ compiler (MSVC) on Windows](https://code.visualstudio.com/docs/cpp/config-msvc)
* [GCC and Mingw-w64 on Windows](https://code.visualstudio.com/docs/cpp/config-mingw)
* [GCC on Windows Subsystem for Linux (WSL)](https://code.visualstudio.com/docs/cpp/config-wsl)
* [GCC on Linux](https://code.visualstudio.com/docs/cpp/config-linux)
* [Clang on macOS](https://code.visualstudio.com/docs/cpp/config-clang-mac)
## Quick links
* [Editing features (IntelliSense)](https://code.visualstudio.com/docs/cpp/cpp-ide)
* [IntelliSense configuration](https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp)
* [Enhanced colorization](https://code.visualstudio.com/docs/cpp/colorization-cpp)
* [Debugging](https://code.visualstudio.com/docs/cpp/cpp-debug)
* [Debug configuration](https://code.visualstudio.com/docs/cpp/launch-json-reference)
* [Enable logging for IntelliSense or debugging](https://code.visualstudio.com/docs/cpp/enable-logging-cpp)
## Questions and feedback
**[FAQs](https://code.visualstudio.com/docs/cpp/faq-cpp)**
Check out the FAQs before filing a question.
**[Provide feedback](https://github.com/microsoft/vscode-cpptools/issues/new/choose)**
File questions, issues, or feature requests for the extension.
**[Known issues](https://github.com/Microsoft/vscode-cpptools/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](https://www.research.net/r/VBVV6C6)**
Let us know what you think of the extension by taking the quick survey.
## Contribution
Contributions are always welcome. Please see our [contributing guide](CONTRIBUTING.md) for more details.
## Microsoft Open Source Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact opencode@microsoft.com 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](https://go.microsoft.com/fwlink/?LinkID=824704). 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.