Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 657 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 657 Bytes

Programming C++ with VSCode

This repository has the basic setup to compile C++14 code using VSCode on MacOS.

Install

  1. Clone the repository. By default it expects the main file main.cc.

  2. Install the vscode extension cpptools code --install-extension ms-vscode.cpptools .

  3. run chmod +x ./tasks.sh

Tasks

It provides three main Tasks:

  • ./tasks.sh build: Builds main.cc
  • ./tasks.sh run: Builds and runs main.cc
  • ./tasks.sh watch: Watch for **/*cc file changes and execute build && run

The same task are available for the vs task runner, press ctrl+shift+p and type Run Taks and select the tasks you want to run.