Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>printVarNew to Visual Studio Code? Get it now.
printVar

printVar

nikitaxgusev

|
164 installs
| (0) | Free
A Visual Studio Code extension for printing selected variables with std::cout in C++.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PrintVar Extension

This extension for Visual Studio Code allows you to print a selected variable with a std::cout statement in C++.

Features

  • Select a variable in your C++ code.
  • Execute the "PrintVar" command.
  • The extension will insert a std::cout statement printing the variable and its value on the line after the selection.

Usage

  1. Open a C++ file.
  2. Select a variable in the code.
  3. Execute the "PrintVar" command (Ctrl + Shift + P, type "PrintVar", and select the command). or ("key": "ctrl+shift+z", "mac": "cmd+shift+z")
  4. The extension will insert a std::cout statement printing the selected variable and its value.

Extension Settings

This extension does not have any configurable settings at the moment.

Known Issues

No known issues. (WIP)

Release Notes

See CHANGELOG.md.

License

This extension is licensed under the MIT License.

Usage for dev

npm run compile npm test

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