How To Use Gpt-5 In Vs Code With Github Copilot

Trending 3 hours ago
coding concept
Pakpoom Makpan/Getty Images

ZDNET's cardinal takeaways

  • GitHub Copilot Pro now supports GPT-5 successful VS Code.
  • A 30-day proceedings lets you trial premium models for free.
  • Add your OpenAI cardinal to bypass Copilot restriction.

GPT-5 is now disposable for usage pinch Microsoft's GitHub Copilot successful VS Code. In this article, I'll locomotion you done nan steps of mounting up nan linkages betwixt VS Code, Copilot, and GPT-5. This process will besides activity for astir other supported ample connection models you want to use.

Also: Microsoft rolls retired GPT-5 crossed its Copilot suite - here's wherever you'll find it

Step 1: Enable GitHub Copilot Pro

You'll request nan Pro type of GitHub Copilot to usage GPT-5 astatine this time. The caller exemplary mightiness beryllium disposable for Copilot's free tier someday, but not yet. There is, however, a 30-day free trial. I'll show you really to group that up here:

start-chat
Screenshot by David Gewirtz/ZDNET

First, unfastened VS Code. Click nan small Copilot icon (1). That action will unfastened nan Copilot pane. Next, click immoderate exemplary is listed astatine (2). Mine is GPT-4.1. Finally, click Add Premium Models (3).

Also: I tested GPT-5's coding skills, and it was truthful bad that I'm sticking pinch GPT-4o (for now)

This will return you to a web page wherever you'll beryllium fixed nan opportunity to effort Copilot Pro for 30 days astatine nary cost. Click nan large greenish button.

free-30
Screenshot by David Gewirtz/ZDNET

Unfortunately, you'll person to adhd your in installments paper info, though it won't beryllium charged for 30 days. To forestall maltreatment of nan 30-day limit, Microsoft requires you to springiness your individual accusation and your in installments paper number:

prevent-abuse
Screenshot by David Gewirtz/ZDNET

Once you've done that, click nan Activate Now button:

activate-now
Screenshot by David Gewirtz/ZDNET

Step 2: Enable GPT-5

You'll request to restart VS Code for nan Pro mode to beryllium made available. Once you do that, click nan existent exemplary (in nan screenshot, it's GPT-4.1), and past scroll and take GPT-5:

gpt-5
Screenshot by David Gewirtz/ZDNET

You will past request to rumor a prompt. In my Deep Research dump of my repository, I was told astir immoderate references to a merchandise I sold a fewer years agone that were still successful nan product's code. I told GPT-5 to region each specified references.

That process resulted successful nan Enable fastener showing up. Basically, I deliberation you tin usage immoderate punctual pinch GPT-5 to trigger nan Enable button. Then click it:

enable
Screenshot by David Gewirtz/ZDNET

Step 3: Bring your ain cardinal

By utilizing nan Pro account, you are fixed a definite number of times you tin usage nan various models. It's unclear really that usage limit is calculated, truthful I person reached retired to Microsoft for clarification. I'll update this article erstwhile I get much info.

Also: How I trial an AI chatbot's coding expertise - and you can, too

If you want to bypass nan imaginable restrictions and complaint limitations, you tin usage your ain API cardinal arsenic provided by your LLM service. You tin study much from Microsoft's connection models page.

With ChatGPT, you tin get an OpenAI Platform Key by pointing your browser here. If you don't already person an OpenAI account, you whitethorn request to springiness them immoderate in installments paper accusation arsenic well. Then click Create Key and travel nan directions:

create-key
Screenshot by David Gewirtz/ZDNET

Once you person your key, spell backmost to Manage Models (by clicking nan existent exemplary you're utilizing and choosing Manage Models). Select OpenAI:

manage-models
Screenshot by David Gewirtz/ZDNET

Type aliases paste successful your key. Press Enter to confirm:

key-input
Screenshot by David Gewirtz/ZDNET

Congratulations, you're now moving GPT-5 successful Copilot.

Have you utilized Copilot?

Have you tried utilizing GPT-4.1 aliases GPT-5 successful VS Code yet? What do you deliberation of nan Copilot Pro acquisition truthful far? Does it consciousness for illustration a worthwhile upgrade? Have you explored utilizing your API cardinal alternatively of relying connected Microsoft's allocation?

Also: The champion AI for coding successful 2025 (and what not to use)

What kinds of tasks aliases prompts person you recovered AI peculiarly adjuvant for successful your coding work? Let america cognize successful nan comments below.


You tin travel my day-to-day task updates connected societal media. Be judge to subscribe to my play update newsletter, and travel maine connected Twitter/X astatine @DavidGewirtz, connected Facebook astatine Facebook.com/DavidGewirtz, connected Instagram astatine Instagram.com/DavidGewirtz, connected Bluesky astatine @DavidGewirtz.com, and connected YouTube astatine YouTube.com/DavidGewirtzTV.

More