Running NodeJS/{Java,Type}Script in vscode? Easy. C++? Not so much.
This is a Visual Studio Code multi-root workspace containing separate small C++ projects. helloworld and helloworld2 have the same contents. I wanted to see if the tasks would work for each project. Yes! The task picker will tell you which project your are currently in.
You should be able to simply copy the helloworld project, add the copy to the workspace, then replace the code with your own.
The executable generated will be named the same as your project name.
You can build via cmake/make, or use the active file task if you're compiling just one file.
I'm not a visual studio code expert. But out of the box, developing C++ is a bit of a pain. If you know an easier way, let me know!
Runs cmake to create the Makefile in build, then it runs make to build the executable.
You probably want to run cmake once. Then when your code is updated, run make.
If you are editing a C++ file and you want to compile it, choose this task.
If you are editing a non C++ file and run this, hilarity will ensue.
Removes the contents of the build directory.
If you find this useful, my kitty likes snacks.
Please read the LICENSE for details.