Skip to content

kaysonwu/cpptask

Repository files navigation

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"
    }
  ]  
}  

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published