Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Create From UsageNew to Visual Studio Code? Get it now.
Create From Usage

Create From Usage

mape

|
786 installs
| (1) | Free
Automatically generates a variable declaration based on TypeScript type information.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode - Create From Usage

"Create from usage" is a Visual Studio Code extension that automatically generates variable declarations based on uninitialized variables in use. It uses the TypeScript type information to infer the wanted type.

Press Ctrl+Alt+T to create an uninitiated variable.

License License

Demo

Demo

Keybindings

The following commands are bound by default when the extension is installed.

Command Keybinding
createFromUsage.createVariable Ctrl+Alt+T
createFromUsage.createVariableInline Ctrl+Alt+Shift+T

Thanks

Thanks to https://github.com/joelday/vscode-docthis for being the jumping point for this extension.

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