Open a folder
Save a .c or .cpp file with a main function in your workspace. Press F5 or choose Smart Run to set up the build and start debugging.
NBCppVS Code extension
Install NBCpp on Windows x64, open a new folder in VS Code, then save and select a .c or .cpp file. NBCpp detects your system compiler and sets up the build and debugger automatically. If it can’t find a compiler for the current language, it uses the bundled compiler.
Windows x64 · 48.82 MiB compressed toolchain in 1.5.0
#include <iostream> int main() {int n = 0; std::cin >> n; std::cout << n * 2 << '\n';}Save a .c or .cpp file with a main function in your workspace. Press F5 or choose Smart Run to set up the build and start debugging.
NBCpp looks for GNU, Clang or MSVC on your system. On Windows x64, a compact LLVM toolchain is included for languages without a suitable system compiler.
Read input with scanf or std::cin in the terminal. Set a breakpoint, then press F10 to step over a statement and inspect the variables.
The Windows x64 bundle includes Clang, Clang++, LLD and the LLDB debug adapter, all at version 21.1.8. In the 1.5.0 VSIX, the toolchain files take up 48.82 MiB compressed and 169.06 MiB unpacked. The full extension package is 49.45 MiB. The bundled tools can compile, link and run C17 and C++17 examples on their own.
NBCpp 1.5.0
Version 1.5.0 added first-run F5 setup for new workspaces and shortened debugger startup with a native launcher. The changes for 1.5.1 cover documentation and toolchain build instructions. Debugging works as it did in 1.5.0.