Introduction
The GitHub Copilot plugin adds inline code suggestions and Copilot Chat to JetBrains IDEs. This guide covers the basic installation and sign-in flow in IntelliJ IDEA. Menu names and screens can vary by IDE and plugin version.
Before you start
You need a GitHub account with access to Copilot and a compatible IntelliJ IDEA version. Copilot Free has usage limits; paid plans provide additional access. Plans and IDE compatibility can change, so check the current official documentation.
Install the plugin
- Open the Plugins settings. On Windows or Linux, select File > Settings > Plugins. On macOS, select IntelliJ IDEA > Settings > Plugins.
- In Marketplace, search for GitHub Copilot and click Install on the plugin provided by GitHub.
- Restart the IDE after installation.
Sign in to GitHub
- Open Tools > GitHub Copilot > Login to GitHub.
- In the sign-in dialog, click Copy and Open. Your browser opens.
- Sign in to GitHub in the browser, paste the device code shown by the IDE, and click Continue.
- Review the requested permissions and select Authorize GitHub Copilot Plugin. Return to the IDE and click OK on the confirmation screen.
Use code suggestions
Start typing in the editor. Copilot displays a suggestion in grayed text; press Tab to accept it. Review suggestions before using them because they are generated from context and may need changes. Open the GitHub Copilot Chat icon on the right side of the IDE to start a chat.
Menus and features may change. See the official documentation for current steps and compatibility information.
