Context Naming Consultant
Select your code. AI reads the context. You get smart name suggestions.
How It Works
Works with variables, constants, functions, booleans, React components, useState hooks, and event handlers. Quick Start1. InstallFrom VS Code Marketplace:
Or visit Marketplace page 2. Set Your API Key
3. Use It
🌐 Language SettingsThis extension supports English and Korean! By default, it follows your VS Code language. Want to change it?
Or add to
ExamplesReact useState
Variable
API Key SetupChoose one method. Listed from most to least recommended: Method 1: Secure Storage (Recommended)
Why is this secure? Your key is stored in your OS credential manager:
The key is encrypted by your OS and never written to any file. No risk of git commits or other apps reading it. Method 2: Environment Variable (Recommended)Add to
Restart VS Code after adding. Method 3: Settings (Not Recommended)
Warning: Key is stored as plain text in
Only use this if other methods don't work for you. Priority OrderKeys are checked in this order:
AI ProvidersDefault is OpenAI. To change:
Supported Naming Types
Team Naming Rules (Optional)Want consistent naming across your team? Add rule files to your project root.
|
| Setting | Default | Description |
|---|---|---|
language |
auto |
UI language (auto, en, ko) |
provider |
openai |
AI provider |
apiKey |
- | API key (not recommended) |
openaiModel |
gpt-4o |
OpenAI model |
claudeModel |
claude-sonnet-4-20250514 |
Claude model |
geminiModel |
gemini-2.0-flash |
Gemini model |
customModel |
- | Override model name |
contextLines |
10 |
Context lines before/after selection |
azureEndpoint |
- | Azure endpoint URL |
azureDeploymentName |
- | Azure deployment name |
azureApiVersion |
2024-02-01 |
Azure API version |
Commands
| Command | Description |
|---|---|
Context Naming: Suggest Name |
Get AI name suggestions |
Context Naming: Set API Key |
Store key securely |
Context Naming: Clear API Key |
Remove stored key |
Troubleshooting
"API Key is not set" → See API Key Setup
"Could not find declaration, copied to clipboard"
→ Select code on a line with const, let, var, function, or useState
"AI call failed" → Check your API key and provider settings
Development
For contributors who want to build from source:
git clone https://github.com/2njeong/naming-consultant.git
cd context-naming-consultant
npm install # Install dependencies
npm run compile # Build once
npm run watch # Auto-rebuild on changes
npm run package # Production build (.vsix)
npm run lint # Lint code
Press F5 in VS Code to launch Extension Development Host for testing.
Contributing
Bug reports, feature requests, and PRs are welcome!
- Fork the repo
- Create feature branch (
git checkout -b feature/amazing) - Commit changes (
git commit -m 'Add amazing feature') - Push (
git push origin feature/amazing) - Open a Pull Request
License
MIT
