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

varmaker

rechenberger

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

varmaker

Features

Defines a new Javascript const in the line before with the selected Text. Replaces the selection by the new variable.

Before:

 console.log("some string");

Select "some string" and press F3

After:

const newVar = "some string";
console.log(newVar);

Extension Settings

Keybinding

{
  "command": "extension.makeVar",
  "key": "F3"
}

Known Issues

  • No auto-indent
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft