codeNamer.openai.model: Model name (default: gpt-4o-mini)
codeNamer.suggestions.count: 3–7 suggestions to return (default: 5)
Security and keys
Do not hardcode or commit API keys. Configure them via the command "Code Namer: Set OpenAI API Key" or set the OPENAI_API_KEY environment variable. The extension reads the setting first and falls back to the environment variable.
Usage
Run "Code Namer: Generate Name"
Select identifier type (function, variable, class, file)
Enter a description of what the identifier represents
Pick from suggestions; the selected name is inserted or copied
Open the "Code Namer" sidebar to view and search your history
Development
npm install
npm run watch to compile in watch mode
F5 to launch the Extension Development Host
npm test to run tests
Testing
Unit tests cover the generateName function
Integration tests cover history persistence using a mock Memento
License
EULA (End User License Agreement) - See LICENSE file for details