Skip to content

帮你方便地把中文词语转成英文变量名的 vs code 插件

License

Notifications You must be signed in to change notification settings

El-Chiang/randvar

Repository files navigation

Randvar

English | 简体中文

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

Google has changed the way it generates tokens for bulk generation, and no good alternative has been found yet. So google translator is temporarily unavailable

🔥 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

About

帮你方便地把中文词语转成英文变量名的 vs code 插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published