← all repositories
ai-genie/chatgpt-vscode

VS Code's ChatGPT sidekick, now with commit-message guilt trips

A VS Code extension that wires OpenAI's models into your editor for code fixes, diffs, and自动生成 commit messages you'll still want to rewrite.

1.3k stars HTML Coding Assistants
chatgpt-vscode
Velocity · 7d
+1.1
★ / day
Trend
steady
star history

What it does

Genie drops a ChatGPT sidebar into VS Code. Select code, right-click, and ask GPT-4o, o1-mini, or older models to explain, fix, or refactor it. It streams answers, shows diffs, and will even draft commit messages from your git diff — because staring at git commit is a special kind of developer fatigue.

The interesting bit

The extension leans into VS Code’s native UI rather than building a chat window in a browser tab. It hooks the Problems panel lightbulb for quick fixes, stores conversation history locally via VS Code’s global storage API, and supports Azure OpenAI deployments for the enterprise-captive crowd. The “partial response detection” is a nice touch: if GPT trails off mid-function, you can continue and stitch answers together.

Key highlights

  • Bring your own OpenAI API key or Azure OpenAI deployment URL
  • One-click diff between your code and GPT’s suggestion
  • Generate commit messages from staged changes (with opt-out settings)
  • Conversation history stored locally, exportable as Markdown
  • Custom system messages and ad-hoc prompt prefixes per selection

Caveats

  • Conversation history is explicitly experimental: “limitations at the moment and may have bugs, use it at your own risk”
  • You must manually clean stored conversation files for privacy; the extension can only append, not delete
  • o1-mini and o1-preview carry OpenAI usage-tier rate limits

Verdict

Worth a look if you want GPT inside your editor rather than toggling between browser tabs. Skip it if you already pay for Copilot and don’t need Azure flexibility or commit-message automation.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.