talira

C/C++ for Visual Studio Code

Microsoft's C and C++ language support for VS Code

commercial softwareMIT AND Microsoft Software License Terms for the C/C++ Extensionfree

C/C++ for Visual Studio Code is Microsoft's extension (ms-vscode.cpptools) that adds C and C++ language support to the editor: IntelliSense, code browsing and debugging. It doesn't include a compiler or debugger: it works with ones already installed, such as MSVC, GCC or Clang, and debugs through GDB, LLDB or the Visual Studio debugger. Its TypeScript source is MIT licensed, but the language service and debugger binaries in the official package are under Microsoft's own licence, which allows use only with Microsoft's products, so it's on the VS Code Marketplace and not on Open VSX.

Problems it solves

  • get autocomplete and go to definition for C++ in VS Code
  • debug a C program in my code editor
  • set up VS Code for C and C++ development

Features

  • IntelliSense for C and C++
  • code browsing and navigation
  • debugging with GDB, LLDB or the Visual Studio debugger
  • works with MSVC, GCC and Clang

Limitations

  • Its licence allows use only with Microsoft's products (VS Code, Visual Studio), not with VSCodium, Cursor or other editors, and it isn't on Open VSX1
  • Doesn't include a compiler or debugger: you install those yourself1

Alternatives

The same job

These do what C/C++ for Visual Studio Code does.

  1. C# for Visual Studio Code Microsoft's C# language support for VS Code
  2. C/C++ Compile Run Compile, run and debug single C and C++ files in VS Code with one key
  3. CLion The IDE for professional C and C++ development
  4. Python extension for Visual Studio Code Microsoft's Python language support for VS Code
  5. Live Share Real-time collaborative editing and debugging in VS Code
  6. PHP Tools A full PHP IDE inside VS Code and Visual Studio

Compare C/C++ for Visual Studio Code with the top 3