How to use GitHub’s AI coding assistant for free – and why it’s worth a try

Must Read
bicycledays
bicycledayshttp://trendster.net
Please note: Most, if not all, of the articles published at this website were completed by Chat GPT (chat.openai.com) and/or copied and possibly remixed from other websites or Feedzy or WPeMatico or RSS Aggregrator or WP RSS Aggregrator. No copyright infringement is intended. If there are any copyright issues, please contact: bicycledays@yahoo.com.

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 via the method of establishing and utilizing this beneficial device in VS Code.  

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

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

The right way 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 will see a immediate inviting you to get began utilizing GitHub Copilot at no cost.

Go forward and click on the radio button and check in.

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

Then authorize the connection.

As soon as that is finished, you may be dropped right into a begin display screen the place you may start interacting with GitHub Copilot in both chat mode or in-line together with your code.

However somewhat than utilizing GitHub Copilot immediately, I might strongly advocate you alter a number of settings. To entry the settings I like to recommend altering, click on on the tiny GitHub icon on the high of the display screen and choose Handle Copilot Settings.

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

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

The second possibility 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 knowledge.

The third possibility is comparable. I do not need GitHub utilizing my code for coaching. Interval.

As soon as you’ve got made these settings adjustments (or whichever ones you wish to make), shut the online web page and return to VS Code. GitHub Copilot is put in as an extension to VS Code. For those who open up your extensions listing, you may see GitHub Copilot’s two extensions put in and activated.

Go forward and shut the extensions pane. Now it is time to really 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 recommendations.

The arrow factors to a logic error that might have been deadly. That is a really precious remark that I won’t have discovered throughout preliminary testing.

What’s attention-grabbing is that GitHub Copilot additionally suggests fixes, which you’ll be able to apply just by urgent the “Apply” button. Assuming Copilot’s code works, that may be an actual time-saver.

You can even 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 jot 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 instantly into the editor.

Give it a strive

That is it. That is all there may be to utilizing GitHub Copilot. With 50 free queries a month, it’s best to have the ability to get an excellent thought of whether or not or not it is a helpful service. Why not give it a strive?

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 remedy? What options do you discover most helpful or most irritating? Are you snug with Copilot’s knowledge insurance policies, or do you will have issues about code privateness? Tell us within the feedback under.


You may observe my day-to-day undertaking updates on social media. Remember to subscribe to my weekly replace e-newsletter, and observe 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.

Latest Articles

Perplexity CEO says its browser will track everything users do online...

Perplexity doesn’t simply need to compete with Google, it apparently desires to be Google.  CEO Aravind Srinivas stated this week...

More Articles Like This