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
- support naming rules: camel case, snake case.
- support translation service: Google, Baidu
Tips: Press
Ctrl+Shift+P
(Windows, Linux) orCmd+Shift+P
(macOS), then inputrandvar
to see a list of commands
Convert chinese to English variable name:
- Select the text to convert in editor
- Press
Alt+Shift+R
(Windows, Linux) orOption+Shift+R
(macOS) - Select the translation tools and naming rule
- Enjoiy! 😋
This extension contributes the following settings:
randvar.preferredTranslator
: set the preferred translation toolsrandvar.preferredNamingRule
: set the preferred naming rule of variable
- ...
optimize user experience
bug fix
bug = bad, update = good!
🎉 My first public version
Initial release
Note: Here are some useful editor keyboard shortcuts:
- Convert to variable name from your preferred config (
Option+Shift+R
on macOS orAlt+Shift+R
on Windows and Linux)