Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>C/C++ Build TaskNew to Visual Studio Code? Get it now.
C/C++ Build Task

C/C++ Build Task

kaysonwu

|
768,499 installs
| (0) | Free
Visual Studio Code task provider for compiling C/C++ project
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C/C++ Build Task

Visual Studio Code task provider for compiling C/C++ project.

Features

  • Compiling with GCC Suite
  • Support multi file
  • Support glob match
  • Automatic management of header and library files

Usage

In the tasks.json file, create a cpp task type:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Build C/C++ Project",
      "type": "cpp",
      "sources": [
        "${fileDirname}/**/*.cc"
      ],
      "output": "${workspaceFolder}/debug/${fileBasenameNoExtension}.exe",
      "options": {
        "cwd": "${fileDirname}"
      },
      "group": "build"
    }
  ]  
}  
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft