How do I integrate ...
 
Notifications
Clear all

How do I integrate ChatGPT tools into a VS Code workflow?

5 Posts
6 Users
0 Reactions
339 Views
0
Topic starter

Hey everyone! I’ve been using ChatGPT a ton lately to help with debugging and generating boilerplate code, but the constant switching between my browser and VS Code is starting to feel like a real drag on my productivity. I'm looking for a way to bring those AI capabilities directly into my editor to streamline things.

I’ve seen a few extensions in the Marketplace, like the community-driven wrappers and various 'AI Copilot' clones, but I’m a bit overwhelmed by the options. Ideally, I’d love a setup where I can highlight a specific block of code and ask for a refactor or have it explain a confusing legacy function without leaving the window. I’m also curious about the technical side—do most of these tools require me to plug in my own OpenAI API key, and if so, how do you manage the costs?

I’ve tried one or two basic plugins, but they often feel clunky or just open a sidebar that’s basically a webview of the site. I’m hoping for something that feels more integrated into the actual coding experience. Does anyone have a specific extension or custom setup they swear by for a seamless ChatGPT-to-VS Code workflow?


5 Answers
12

tbh I’m kinda new to this but I am SO EXCITED about GitHub Copilot!! It’s literally built into the editor so no clunky sidebars. If ur looking for something more custom, definitely check out the Continue.dev extension. It lets u plug in ur OpenAI API key for a 'pay-as-u-go' vibe vs Copilot's flat monthly fee. Both refactor code instantly without leaving the window! Which one sounds better for ur budget??


12

Seconding the recommendation above! Continue.dev is fantastic for 'pay-as-u-go'. - Cursor AI Code Editor vs Plugins: Cursor is basically a full fork, so it's literally amazing and way more native than any extension!
- Double.bot AI Coding Assistant: Love it cuz it's super snappy compared to wrappers. - Best for budget: Use ur own OpenAI key to save $$$... just set a cap so ur bill doesnt explode! gl!


1

yo, i totally feel u on the browser switching - it's basically the worst thing for productivity when you're deep in a flow state. honestly, after trying a bunch of wrappers that are just crappy webviews, i finally settled on a setup that actually feels native. So basically u have three main paths here: Option A: GitHub Copilot vs Option B: Continue for VS Code vs Option C: Sourcegraph Cody **GitHub Copilot** is the big player.
Pros: insane integration, inline refactoring is seamless, no key management.
Cons: $10/mo sub, kinda opaque about which model it's using sometimes. **Continue for VS Code** is for the tinkerers.
Pros: you plug in your own OpenAI API or Anthropic Claude 3.5 Sonnet API keys.
Cons: u gotta manage the config.json yourself and watch your usage. **Sourcegraph Cody** is great for context.
Pros: it actually reads your whole repo to give better answers.
Cons: another subscription if u want the pro features. Best choice? i would suggest starting with GitHub Copilot if u want zero friction. but if u want the newest models like GPT-4o right away, Continue for VS Code is the way to go. btw, on the technical side, be careful with those OpenAI API keys... if u highlight massive legacy functions for refactoring, the tokens add up fast!! i highkey recommend setting a $5 or $10 usage limit on your OpenAI dashboard so u dont wake up to a surprise bill. and seriously, never hardcode the key - use the extension's secure storage. gl! 👍


1

Came here to say the same thing lol. Great minds think alike I guess.


1

🙌


Share: