Hi everyone.
Welcome back.
In this lecture I'm going to show you how to set up a coding assistant which is GitHub copilot.
Let me take a step back and explain about the need for the copilot assistant.
In today's fast moving software industry, developers are juggling between multiple frameworks, tools,
and coding standards.
Writing high quality code has become essential.
That's where GitHub Copilot can make a huge difference.
So if you go to the Chrome and then search for GitHub Copilot, it will give you this page your AI pair
programmer.
If you open this page, it talks about the features and it talks about what is this particular tool.
Right.
So it's an AI that builds with you.
So basically you give it a prompt over here.
It's going to look at your source code.
It's going to edit the files for you.
And as a developer you have the complete control to either accept the changes or discard the changes.
So in this course I have updated some of the lectures using the copilot assistant.
Basically the idea is I will be coding the features by hand, and also I'll show you some lectures where
we can have the AI coding assistant write the code for you based on what we need.
And then I'll also show you the workflow of how to accept the changes, how to discard the changes,
how to make the changes done by the copilot automatically in your code base without you hand code each
and every line.
It's your AI powered coding assistant that understands your intent, suggests complete lines or entire
functions or multiple source code files, and explore, which is going to help you explore unfamiliar
APIs in seconds.
With Copilot, you spend less time on repetitive code and more time focusing on creativity, problem
solving, and building great products.
So how do you get started actually?
So if you go ahead and take a look at the see plans and pricing.
I have this configured already, but I'll walk you through these steps one by one.
So in this case you have the free tier.
That's what I have.
You can actually click on Get Started.
And this gives you access to multiple models out of the box.
So here you have GPT for one GPT for I have actually configured my OpenAI API key.
That's why I see this additional models.
But in your case you might be seeing limited models.
You can actually use it to interact with.
Okay.
Let's say if you want to ask a question, you can ask it in this particular web page itself.
But this is not what we want, right?
So we want this assistant to be right in the IntelliJ itself.
That's where you're going to be seeing the benefit.
Right.
Let's go back to IntelliJ and then install this plugin.
So if we go to the IntelliJ click on the.
So in here if you go to the plugins and then you got to search for that GitHub copilot.
If you search for it.
As you can see the number of downloads is 31.8 million downloads.
Okay.
And then you can actually install it since you have already installed it.
I don't have that option, but you'll be seeing an install option.
Click on the install over here.
And then once installation is complete you need to restart the IntelliJ.
So once the plugin is installed what we need to do.
So if you go to the windows over here or the tools you will see an option called GitHub Copilot okay.
And you have the option called open Chat and all other different options okay.
You can actually click on the open chat.
If you are opening it for the very first time, it will ask you to configure or connect your GitHub
account with the plugin so that it can track your usage, how many completions you have.
Because there is a limitation on how many chat completions you can do when you're using a free tier.
So if you go back, I'll quickly show you that also.
So here it says that we have 50 agent mode or chat completions per month and 2000 chat completions per
month, but if you choose to use your $10 package here, you have unlimited Agent Mode chats with the
GPT five mini, and you have unlimited code completions.
And then you have all these different additional features you have access to, and you also have the
access to the coding agent.
So it's up to you.
You are welcome to use any of these plants, but if you use free you have a limitation.
But if you use Pro you have unlimited options available.
Okay.
Let's go back to the IntelliJ.
And then you will have this particular chat available for you.
So here you can choose whatever model you want.
And you can also click to see what how you can manage these models okay.
So this is how you set up your copilot in IntelliJ.
And in some of the lectures.
We'll be using this copilot to help understand the concepts.
And also ask the copilot to write the code logic for us.
I hope you all have this copilot installed on your machine.
With this.
We came to the end of this lecture.
Thank you for watching.