This repository has the basic setup to compile C++14 code using VSCode on MacOS.
-
Clone the repository. By default it expects the main file
main.cc
. -
Install the vscode extension cpptools
code --install-extension ms-vscode.cpptools
. -
run
chmod +x ./tasks.sh
It provides three main Tasks:
./tasks.sh build
: Buildsmain.cc
./tasks.sh run
: Builds and runsmain.cc
./tasks.sh watch
: Watch for**/*cc
file changes and executebuild && 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.