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

randvar

ElChiang

|
110 installs
| (2) | Free
A convenient variable name generator plugin
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Randvar

English | 简体中文

A convenient variable name generator plugin which can convert your Chinese text to English variable name. 👍🏻

🔥 Features

  • support naming rules: camel case, snake case.
  • support translation service: Google, Baidu

👩🏻‍💻 Quick Start

Tips: Press Ctrl+Shift+P (Windows, Linux) or Cmd+Shift+P (macOS), then input randvar to see a list of commands

Convert chinese to English variable name:

  1. Select the text to convert in editor
  2. Press Alt+Shift+R(Windows, Linux) or Option+Shift+R(macOS)
  3. Select the translation tools and naming rule
  4. Enjoiy! 😋

🔧 Extension Settings

This extension contributes the following settings:

  • randvar.preferredTranslator: set the preferred translation tools
  • randvar.preferredNamingRule: set the preferred naming rule of variable

🤔 Known Issues

  • ...

🥳 Release Notes

1.0.3

optimize user experience

1.0.2

bug fix

1.0.1

bug = bad, update = good!

1.0.0

🎉 My first public version

0.1.0-alpha.0

Initial release

Note: Here are some useful editor keyboard shortcuts:

  • Convert to variable name from your preferred config (Option+Shift+R on macOS or Alt+Shift+R on Windows and Linux)

For more information

  • Visual Studio Code's Markdown Support
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft