Willem's Fizzy Logic

Github Copilot: What you need to know to get started with AI-assisted programming

Github Copilot: What you need to know to get started with AI-assisted programming

We’re starting with a pilot to test Github Copilot at Info Support. This is awesome news for us because we can now learn how much copilot is going to help us with our code. In the past few months, I’ve been testing Github Copilot on my own projects and learned a ton about things like use cases and plugins for various IDEs.

In this post I’ll quickly go over the use cases and cover which plugins you need to get copilot working in your favorite editor/IDE.

Why use Github copilot in the first place?

There are a number of reasons why I believe Github copilot can be a very powerful piece of technology. As many of my colleagues know, I’m working on a huge variety of languages and tools. And I have to be honest here: I don’t know every little tiny detail of every language and tool. Often, I find myself searching books and Google for information.

With Github Copilot I don’t have to start hunting for the manual right away. I can type in a comment with a description of what I want and Copilot can suggest how to solve the problem in the language I’m working with at that point.

Usually, Copilot will suggest a line of code or part of a line of code when you start typing pieces of recognizable syntax. However, when you type a comment with a problem statement, it will more likely suggest a function or even a full file.

Not many will know this, but Copilot can also be used to debug common mistakes in your code. I’ve been working on a computer vision solution and switched the axes of an operation around completely flipping an image. Copilot helped me fix the issue with a suggestion.

Supported languages

“What languages does Copilot support? Does it do ?” This is a question I get a lot from colleagues and people who haven’t used Copilot before.

GitHub copilot is a tool that’s based on the OpenAI Codex model. This is a language model specifically build for programming languages. They’ve trained the model with over a dozen languages so it likely supports yours too.

So far, I’ve tested GitHub copilot with the following languages:

And I know for sure there are more languages out there that Copilot supports. The key here is to get a plugin for your favorite editor to collaborate with copilot. Let’s take a look.

Supported editors and IDEs

During the preview Copilot was only available in Visual Studio Code. Nowadays it’s available in a lot more tools which is great news if you love Rider, IntelliJ or even vim!

As I mentioned, GitHub Copilot is currently available as a Visual Studio Code extension, which in turn supports a wide range of language like Rust, Go, C#, Java, Javascript, and many more.

Download the VSCode plugin here.

Speaking of Visual Studio, there’s a plugin for that one too.

Download the Visual Studio extension here.

Additionally, it is also available as a plugin for JetBrains’ PyCharm and IntelliJ IDEA, which are popular IDEs for Python and Java, respectively.

Download the IntelliJ-based IDE plugin here.

I’m using vim these days as one of my tools because it offers tools to get around your code at lightning speeds. If you’re into this sort of thing, I can highly recommend checking out the plugin for that one too.

Download the vim plugin here.

It’s good to know that Copilot doesn’t interfere with the autocomplete options provided by the editors. You can still use the refactoring functions in IntelliJ and Rider after installing Copilot so you can change things if Copilot doesn’t name things quite right. Visual Studio 2022 is a great example to mention here as well. You have autocomplete in Visual Studio and IntelliCode which helps with AI-based refactorings. Copilot is a great addition to this!

Getting the most out of Github Copilot

Many will be wondering what value Copilot brings to the table when they first open the IDE. It’s not Copilot will immediately start suggesting things. After all, it’s the Copilot, you’re the driver so it would be kind of annoying if it got in your way.

Here’s a few things to try the first time:

This is just the start of what Copilot can do for you. Here’s a few additional tips to get the most out of your new pair programmer:

Summary

GitHub Copilot has changed my experience writing code for the better. It’s not perfect, and it will likely never be perfect. But that’s not the point. The point is to save time on the boring stuff so you can work on the interesting bits!

I hope you’re going to give GitHub Copilot a spin. Please let me know if you have any questions or comments. We’re super excited to learn more about what AI can bring to the table for developers.

About

Willem Meints is a Chief AI Architect at Aigency/Info Support, bringing a wealth of experience in artificial intelligence and software development. As a Microsoft AI Most Valuable Professional (MVP), he has been recognized for his significant contributions to the AI community.

In addition to his professional work, Willem is an author dedicated to advancing the field of AI. His latest work focuses on effective applications of large language models, providing valuable guidance for professionals and enthusiasts alike.

Willem is a fan of good BBQ, reflecting his appreciation for craftsmanship both in and out of the digital realm.

Contact