Genie is a Visual Studio Code extension that prompts OpenAI and Azure OpenAI models from the editor, with streaming chat, code actions, and git commit message generation.
Overview
ChatGPT Genie (ChatGPT VS Code) embeds OpenAI’s GPT-4, GPT-3.5, GPT-3, and Codex models inside Visual Studio Code. You supply your own OpenAI or Azure OpenAI API key and ask coding questions from selected code, the sidebar conversation, or the editor view.
Context menu commands add tests, find bugs, optimize, explain, and comment on highlighted code, with customizable prompt prefixes and optional ad-hoc prompts. Suggested code can be copied or inserted, compared in an inline diff, or used to create new files.
Genie supports streaming answers with stop controls, conversation history stored locally when enabled, quick fixes from the Problems window, and export of chats to Markdown. Git integration can generate commit messages from staged changes.
Settings control models, Azure deployment URLs, system messages, and which menu actions are enabled. The extension runs in the VS Code UI host and stores API keys in VS Code secret storage.
Key features
- OpenAI and Azure OpenAI models
- Sidebar and editor streaming chat
- Code selection context commands
- Inline diff for AI suggestions
- Git commit message generation
- Problems window quick fixes
- Local conversation history option
- Markdown conversation export
Use cases
- In-editor code explanation and review
- Generating tests or comments for snippets
- Commit messages from git changes