GitHub Copilot is one of the most powerful tools available to developers today — an AI coding assistant that can write code, generate tests, and even explain snippets in real time. But before you can experience its magic, you need to set it up correctly in your IDE.
In this guide, we’ll walk you through installing and configuring GitHub Copilot in the most popular environments: Visual Studio Code, Visual Studio, JetBrains IDEs, and Neovim.
Step 1: Get a GitHub Copilot Subscription
Before you begin:
- Sign in to your GitHub account.
- Subscribe to GitHub Copilot Pro (or use the Free plan if eligible as a student/teacher).
![GitHub Copilot Subscription Page]()
Step 2: Install GitHub Copilot in VS Code
- Open Visual Studio Code.
- Go to the Extensions Marketplace (
Ctrl+Shift+X
or Cmd+Shift+X
on Mac).
- Search for GitHub Copilot.
- Click Install.
![GitHub Copilot in VS Code]()
- Once installed, sign in with your GitHub account to activate Copilot.
- Start coding — Copilot suggestions will appear as ghost text in your editor.
Step 3: Install GitHub Copilot in Visual Studio (Windows/Mac)
- Open Visual Studio 2022.
- Go to Extensions → Manage Extensions.
- Search for GitHub Copilot and install it.
- Restart Visual Studio.
- Sign in to GitHub when prompted.
Step 4: Install GitHub Copilot in JetBrains IDEs (IntelliJ, PyCharm, WebStorm)
- Open your JetBrains IDE.
- Navigate to Settings → Plugins → Marketplace.
- Search for GitHub Copilot.
- Install the plugin and restart your IDE.
- Sign in to GitHub to activate.
![]()
Step 5: Install GitHub Copilot in Neovim
If you’re using Neovim:
- Use the Copilot.vim plugin.
- Add it using your plugin manager (e.g., Vim-Plug or Packer).
- Authenticate with GitHub.
- Start coding with Copilot in your Neovim setup.
Step 6: Configure GitHub Copilot Settings
Once installed, you can customize Copilot:
- Enable/disable per file type
- Trigger suggestions manually or automatically
- Configure Copilot Chat for natural-language code assistance
In VS Code, for example, go to:
Settings → Extensions → GitHub Copilot
Tips for Using GitHub Copilot Effectively
- Write clear comments — Copilot responds better to descriptive prompts.
- Use it for boilerplate and repetitive code, not sensitive business logic.
- Pair it with code review tools to ensure quality and security.
Conclusion
Setting up GitHub Copilot is simple, and once installed, it becomes like a second brain for your coding workflow. Whether you’re using VS Code, Visual Studio, JetBrains, or even Neovim, you can get up and running in just minutes.
Want to go beyond setup and master GitHub Copilot with real-world projects?
👉 Enroll in our GitHub Copilot Training at LearnAI.C-SharpCorner.com and learn how to code faster, smarter, and with confidence.