Some boilerplate for working with C/C++ projects in Windows using WSL.
- Install WSL
- apt install build-essentials gdb
- Install C/C++ extension in VSCode
- Create tasks.json Ctl+Shift+P -> Configure Tasks
- Create launch.json Ctl+Shift+P -> Debug: Add Configuration
Build: Ctl+Shift+B Debug: select "(gdb) Launch" or F5
- cpp-gpp: C++ using G++ build.
- cpp-make: C++ using GNU Make.
- cpp-ninja: C++ using CMake + Ninja build.