Find out how to use GitHub’s AI coding assistant without cost – and why it is value a attempt

How to use GitHub Copilot for free with VS Code step-by-step

GitHub Copilot is GitHub's AI coding assistant. In December, GitHub introduced that the beforehand paid-only helper now has a free tier. On this article, we'll take you step-by-step by the method of organising and utilizing this beneficial device in VS Code.

Additionally: The very best AI for coding (and what to not use – together with DeepSeek R1)

Earlier than we start, I’ll share one cautionary notice. In my testing of the free GitHub Copilot's programming prowess, the AI failed half of my exams. That's not nice. Paid subscriptions supply entry to OpenAI's higher-level LLMs, so in case you pay for the service, it’s possible you’ll get higher outcomes.

Even with the AI missteps, I nonetheless assume it's value attempting out the free tier. The free model offers you 50 full queries a month, which needs to be greater than sufficient to present you a stable really feel for the way the product performs and integrates into your VS Code workflow.

Find out how to get began

Let's get began. As conditions for this guided tour, please set up VS Code, replace it to the present model, and be sure to have a GitHub account.

Now, open VS Code. You'll see a immediate inviting you to get began utilizing GitHub Copilot without cost.

Go forward and click on the radio button and register.

There's a two-step authorization course of. First, hyperlink your account.

Then authorize the connection.

As soon as that's achieved, you'll be dropped right into a begin display the place you may start interacting with GitHub Copilot in both chat mode or in-line along with your code.

However quite than utilizing GitHub Copilot immediately, I'd strongly advocate you modify a couple of settings. To entry the settings I like to recommend altering, click on on the tiny GitHub icon on the prime of the display and choose Handle Copilot Settings.

This can carry you to a most important settings display. Right here there are three choices I like to recommend you flip off.

The primary choice permits or disallows Copilot from utilizing public code as a part of its strategies. I, personally, don't need GitHub Copilot to include public code snippets into my code. I'd quite it construct these snippets by itself, quite than run the danger of pulling in another person's code. Sure, all these AIs are educated on public code, however the place I’ve the choice of turning off blatant code grabs, I’ll.

The second choice permits GitHub to make use of my code for enhancements. No. Simply no. I do launch most of my code as open supply, however I nonetheless don't need GitHub incorporating it into their information.

Additionally: I examined DeepSeek's R1 and V3 coding abilities – and we're not all doomed (but)

The third choice is comparable. I don't need GitHub utilizing my code for coaching. Interval.

When you've made these settings modifications (or whichever ones you need to make), shut the net web page and return to VS Code. GitHub Copilot is put in as an extension to VS Code. If you happen to open up your extensions listing, you'll see GitHub Copilot's two extensions put in and activated.

Go forward and shut the extensions pane. Now it's time to truly use the AI.

Utilizing the AI to assist write code

In my first instance, I opened a block of code within the editor. Within the chat field, I requested GitHub Copilot to search out any logic errors. As you may see, it scanned the code within the editor window and gave me some strategies.

The arrow factors to a logic error that would have been deadly. That's a really invaluable statement that I won’t have discovered throughout preliminary testing.

What's fascinating is that GitHub Copilot additionally suggests fixes, which you’ll apply just by urgent the "Apply" button. Assuming Copilot's code works, that may be an actual time-saver.

You may as well entry the AI proper from the code editor itself by urgent Management-I. Right here, I've pressed Management-I, which opens a small chat pane. I then requested Copilot to write down code that highlights duplicated traces.

As you may see, it wrote the code inline, proper the place I requested for it. Hitting Settle for drops the AI-written code immediately into the editor.

Give it a attempt

That's it. That's all there’s to utilizing GitHub Copilot. With 50 free queries a month, it’s best to be capable to get an excellent concept of whether or not or not it's a helpful service. Why not give it a attempt?

Additionally: OpenAI launches new o3-mini model – here's how free ChatGPT users can try it

Have you ever tried GitHub Copilot's free tier but? Do you assume AI-powered coding assistants like Copilot genuinely enhance productiveness, or do they introduce extra issues than they resolve? What options do you discover most helpful or most irritating? Are you comfy with Copilot's information insurance policies, or do you have got issues about code privateness? Tell us within the feedback under.

You may comply with my day-to-day challenge updates on social media. Remember to subscribe to my weekly replace publication, and comply with me on Twitter/X at @DavidGewirtz, on Fb at Fb.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, on Bluesky at @DavidGewirtz.com, and on YouTube at YouTube.com/DavidGewirtzTV.

Synthetic Intelligence

Follow us on Twitter, Facebook
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 comments
Oldest
New Most Voted
Inline Feedbacks
View all comments

Latest stories

You might also like...