Skip to content
| Marketplace
Sign in
Visual Studio Code>Notebooks>C++ NotebookNew to Visual Studio Code? Get it now.
C++ Notebook

C++ Notebook

shridhar kalavagunta

|
74 installs
| (0) | Free
c++ notebook extension
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cxxnb README

Visual Code Notebook extension that uses C++ compiler to compile notebook cells.

Features

  • Quickly run small snippets of c/c++ code in a notebook. Load and Save the notebook with a .cxxnb extension.
  • Try with various compiler options by changing the Kernel, which are defined in a config file

All kernel details are stored under settings cxxnb: Kernel File Path. To run a C++ snippet create a cxxnb notebook and click run.

Create New CXX Notebook

Create new cxxnb notebook, adds a new kernel if none are available. Shows how to change kernel and add new kernels. Demonstrates on how to edit kernel.json manually. Create New CXX Notebook

If kernel.json file does not exist, a file will be created with default compiler g++ and -Wall options.

Save/Load Notebook kernel

Save and Load .cxxnb files Save/Load Notebook kernel

Requirements

  • C++ compiler (e.g., GCC, Clang)
  • Visual Studio Code

Extension Settings

  • cxxnb.enable: Enable/disable this extension.
  • cxxnb.kernelsFilePath: Path to the C++ kernels.

Known Issues

  • Limited support for complex C++ projects.
  • Debugging not supported as yet.
  • Performance may vary depending on the size of the code snippets.

Release Notes

Quick and small C++ notebook to quickly try out new C++ features. All code snippets can be save and reloaded. Add various compiler settings to test out the compiler features.

1.0.0

CXX Notebook to compile and run various c++ code snippets.

2.0.0 (August 2023)

Features

  • We can now use a docker container to compile and run our C++ code
  • Moved all kernel details from a external file to the VSCode suggested way of storing application specific data.
  • Queries for all available (gcc/clang) compilers in the system.
  • Supports multiple kernels.
  • Has a default timeouts for long running executions.
  • User can stop a long running process using the stop button.
  • Output now captures both stdout and stderr.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft