Installation Guide
This guide covers how to install GitHub Copilot on various platforms with a focus on Linux environments.
Prerequisites
GitHub account with Copilot subscription (individual or enterprise)
Internet connection
VS Code Installation
Standard Linux Installation
Open VS Code
Navigate to Extensions (Ctrl+Shift+X)
Search for "GitHub Copilot"
Click "Install"
After installation, click "Sign in" and authenticate with your GitHub account
NixOS Installation
For NixOS users, you can add GitHub Copilot to your system configuration:
Add VS Code with the Copilot extension to your
configuration.nix
:
Alternatively, using Home Manager:
Apply the configuration:
WSL Installation
GitHub Copilot in WSL works through VS Code's remote development:
Install VS Code on your Windows host system
Install the "Remote - WSL" extension in VS Code
Open VS Code, connect to your WSL instance
Once connected to WSL, install the GitHub Copilot extension
Sign in to GitHub when prompted
JetBrains IDEs Installation
Open your JetBrains IDE (IntelliJ IDEA, PyCharm, etc.)
Go to File > Settings > Plugins (or Preferences > Plugins on macOS)
Search for "GitHub Copilot"
Click "Install"
Restart the IDE when prompted
Sign in to GitHub when prompted after restart
GitHub Copilot CLI Installation
The GitHub Copilot CLI provides AI-powered assistance directly in your terminal.
Standard Linux Installation
NixOS Installation
For NixOS users, you can create a custom package or use a flake:
WSL Installation
In your WSL Linux distribution:
Verification
To verify that GitHub Copilot is properly installed:
VS Code
Open a code file in a supported language
Start typing a comment describing what you want to do
Copilot should offer suggestions that you can accept with Tab
CLI
Run the following command to verify the CLI installation:
Troubleshooting
Common Issues
Authentication Problems
Ensure you have an active GitHub Copilot subscription
Try signing out and signing back in
No Suggestions Appearing
Check if the extension is enabled
Verify your internet connection
Try restarting your editor
NixOS-Specific Issues
Ensure your Nix expression is properly configured
Check if you're using a compatible version of VS Code
WSL Connectivity Issues
Verify that your Windows host can connect to the internet
Check if the VS Code server is properly installed in WSL
Getting Help
Last updated