Var Name
A VSCode extension powered by LLM API that translates text into various programming language variable naming conventions.
🤖 The extension uses SiliconFlow's Qwen/QwQ-32B free model by default, which can be used out of the box.
English | 中文
✨ Features
- 🚀 Quick access via shortcut (Ctrl+Shift+T / Cmd+Shift+T)
- 🤖 Multiple AI model support (OpenAI, DeepSeek, Qwen, etc.)
- 📝 Generates multiple naming conventions:
- camelCase
- PascalCase
- snake_case
- CONSTANT_CASE
- kebab-case
- ⌨️ Keyboard navigation and one-click copy
- ⚙️ Flexible configuration options
📥 Installation
- Open the Extensions panel in VSCode (Ctrl+Shift+X)
- Search for "Var Name"
- Click Install
⚙️ Configuration
Key |
Description |
Value |
var-name.apiKey |
API Key |
Your API key string |
var-name.baseURL |
Custom API URL |
Optional custom endpoint |
var-name.model |
Model Name |
Model identifier string |
🎯 Usage
- Press shortcut
Ctrl+Shift+T (Mac: Cmd+Shift+T )
- Enter Chinese text in the input box
- Wait for AI translation
- Use arrow keys to select naming convention
- Press Enter to copy to clipboard
💡 Example
Input: 是否显示弹窗
Output:
- camelCase:
isShowModal
- PascalCase:
IsShowModal
- snake_case:
is_show_modal
- CONSTANT_CASE:
IS_SHOW_MODAL
- kebab-case:
is-show-modal
| |