Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Variable Console LogNew to Visual Studio Code? Get it now.

Copy Variable Console Log

mickmelon

|
12 installs
| (0) | Free
Copy a console log for a variable to the clipboard
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Variable Console Log

A Visual Studio Code extension that allows you to copy a console.log for a variable to the clipboard. E.g. highlighting a variable called foo will copy console.log("foo", foo); to the clipboard.

Features

  • Right click on a highlighte variable name in your code and select "Copy Variable Console Log".
    • Alternatively you can highlight a variable and press Alt+Ctrl+C
  • The console.log to log the variable out will be copied to your clipboard.

Demo

Known Issues

Not tested on Mac.

Release Notes

1.0.0

Initial release

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft