GitHub Copilot: Your AI pair programmer

GitHub Copilot: Your AI pair programmer

Get suggestions for whole lines or entire functions right inside your editor.

Hey, This is Ashik here. Today morning I was browsing the internet and there was a new video by Fireship titled The Truth about GitHub Copilot // AI Programming First Look. I watched it and I got shocked watching the features of GitHub Copilot and it worth sharing. So, here is the article.

👨‍🏫️ Introduction

GitHub Copilot is an AI pair programmer that helps you write code faster with less work and best practices. GitHub Copilot draws context from comments and code and suggests individual lines and whole functions instantly. GitHub Copilot is an AI tool powered by OpenAI Codex.

⚙️ Working

GitHub Copilot is powered by OpenAI Codex. OpenAI Codex was trained on publicly available source code and natural language, so it understands both programming and human languages. The GitHub Copilot is available in VS Code as an extension and in GitHub Codespace. The GitHub Copilot extension sends your comment and code to the GitHub Copilot service, which then uses OpenAI Codex to synthesize and suggest individual lines and whole functions.

image.png

🤔️ How to Use?

GitHub Copilot is currently available as a technical preview. So, go and apply for the technical preview and get the chance to preview the Brahmastra(one of the strongest weapons in Hindu Mythology) of programmers.

Click here to apply

🤟️ Features

  1. Convert comments to code: Write the comment describing the logic of the code, and GitHub Copilot will assemble the code for you. image.png

  2. Autofill repetitive code : GitHub Copilot quickly produces boilerplates for repetitive code patterns. You have to just feed it a few examples and let it generate the rest. image.png

  3. Tests without the toil : GitHub Copilot helps you write the tests easily without the toil. You have to just import the unit test package and GitHub Copilot will show its magic. image.png

  4. Show alternatives: If you want to evaluate more approaches, GitHub Copilot can show you a list of solutions. image.png

Final thoughts I think Github Copilot is a great innovation in programming. It will help programmers to write code faster with less effort and best practices. I have already applied for a Technical preview and waiting for it to get approved. I will definitely use it for my future projects.

Thanks for reading up to the end. Hope you like the article. If you find the article helpful, consider sharing it.