This article was last updated by on

How To Install GitHub Copilot In PyCharm?

GitHub Copilot is powered by OpenAI Codex, which helps users to work from their editor in real time.

It uses a powerful version of the GPT-3 model that is trained on a large amount of open-source code.

Furthermore, GitHub Copilot is available on different IDEs (Integrated Development Environments), including the PyCharm IDE. You can easily install it on all editions of the PyCharm and use it as an extension, which helps suggest codes for your project.

This article will teach you more about GitHub Copilot and how to enable and disable it on PyCharm.

What Is GitHub Copilot?

GitHub Copilot is an AI pair programmer that automatically provides suggestions to complete your code.

It presents suggestions using an OpenAI model that is built from billions of LOC(Lines of Codes), which are open source.

Introduction to GitHub Copilot
GitHub Copilot automatically provides suggestions to complete your code.

Furthermore, it supports every programming language in public repositories like C, C++, Python, JavaScript, etc.

Regarding its pricing, the GitHub Copilot for individuals ranges from $10 monthly to $100 yearly.

Moreover, the business version of GitHub Copilot is $19 per user per month.

Is GitHub Copilot Available For PyCharm?

GitHub Copilot is an extension in different IDEs like Visual Studio Code, Visual Studio, Neovim and JetBrains.

It is available with all the editions (Professional, Community and Educational) of the PyCharm IDE.

GitHub Copilot for PyCharm
You can find GitHub Copilot in PyCharm Plugins.

Moreover, to use GitHub Copilot in PyCharm, you must have an active subscription to Copilot.

Read on to learn about the GitHub Copilot alternatives and the similarities & differences between GitHub Copilot Vs. ChatGPT.

How To Install GitHub Copilot In PyCharm?

PyCharm should be installed properly on your device before installing GitHub Copilot. You can find PyCharm on the official page of JetBrains.

Furthermore, following the steps below, you can easily install GitHub Copilot in PyCharm.

  1. Open PyCharm and Click on the Plugins.
GitHub Copilot in the plugins
You can find GitHub Copilot in the Plugins section.
  1. Go to Marketplace and Search for “GitHub Copilot.”
  2. Click on Install and select “Accept” for the third-party plugin note.
plugins note
Accept the third-party plugin’s note.
  1. Now restart PyCharm after it completes downloading.
  2. Then go to Tools, select GitHub Copilot and Log in to GitHub.
Tools section in the PyCharm
You can easily log in to GitHub Copilot from the tools section.
  1. Sign in to GitHub by clicking on “Copy and Open.”
Signing in to GitHub
Copy the code to sign up in GitHub.
  1. Activate GitHub Copilot by pasting the code and clicking continue.
Activating GitHub Copilot
Paste the code to activate Copilot.
  1. GitHub will request the necessary permissions; click Authorize GitHub Copilot Plugin.
Note: When you grant access, you allow the plugin to access your private information, like repositories and email addresses.
  1. Add a billing method, and you will be good to go.

Thus, you can use GitHub Copilot in the PyCharm IDE as an extension.

Using GitHub Copilot In PyCharm

After installing GitHub Copilot in PyCharm, you can now use it as an extension for your projects.

Furthermore, there are two ways to receive suggestions from GitHub Copilot on your IDEs.

The first way is to start writing the code, and it will automatically suggest the following codes.

Here is an example of GitHub Copilot suggesting codes in a program to find the greatest common divisor.

GitHub Copilot suggesting codes
GitHub Copilot suggests codes automatically as you start writing.

Another way is to write comments describing what you want the code to do in a natural language.

Here is an example of GitHub Copilot suggesting code after writing what to do in the comments.

GitHub Copilot suggesting codes from the comments.
GitHub Copilot suggests codes from the comments.

Furthermore, you can use some shortcuts while using GitHub Copilot on your IDEs.

These shortcuts can make your work easier and increase your productivity.

ActionWindows/LinuxmacOS
Trigger Inline SuggestionsAlt + \Option + \
Next SuggestionAlt + ]Option + ]
Previous SuggestionAlt + [Option + [
Accept SuggestionTabTab
Dismiss Inline SuggestionEscEsc
Show All Suggestion in New TabAlt + EnterAlt + Enter

Enabling And Disabling GitHub Copilot

You can enable or disable the GitHub Copilot extension specifically for individual or all languages.

The status icon in the bottom panel of your IDEs indicates whether the GitHub Copilot is enabled or disabled.

  • To enable, click on the status icon in the bottom-right corner of the PyCharm.

GitHub Copilot status icon

Occasionally, the auto-complete suggestions can disturb you while you are focused.

In addition, when you grant access to the plugin in the installation part, your private information is exposed.

Therefore, you can disable the GitHub Copilot plugin from your IDEs.

  • You can disable it by clicking the status icon and disabling it for specific or all languages.
Disabling GitHub Copilot
You can disable GitHub Copilot by clicking the status icon.

The Bottom Line

GitHub Copilot is an excellent AI assistant that helps you suggest codes with greater precision.

Furthermore, it is easy to install on different IDE platforms, and you can also enable the GitHub plugin for specific programming languages.

However, you must pay subscription fees to access it, as it does not provide any free trials.

Read on to learn about the similarities & differences between Codex Vs. ChatGPT and the top alternatives of Codex.
0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like