This is a WIP community resource, containing contribution from community members.
GitHub Copilot is an AI-powered coding assistant that integrates smoothly with IntelliJ IDEA. While Copilot is developed by GitHub (a Microsoft-owned company) and initially optimized for VS Code, it also offers robust support for JetBrains IDEs through an official plugin, ensuring a seamless coding experience across different development environments.
If you have not enabled Copilot in your GitHub account, follow the guide in the panel below:
File
→ Settings
→ Appearance & Behavior
→ System Settings
→ Updates
→ Check for Updates…
.Update and Restart
.File
→ Settings
→ Plugins
→ Marketplace
.Install
on the plugin developed by GitHub.Restart IDE
→ Restart
.Sign in to GitHub
.Copy and Open
.Ctrl+V
, click Continue
, then Authorize GitHub Copilot Plugin
.File
→ New
→ Scratch File
→ Java
./
and a suggestion should appear automatically.// print Hello World
inside the main method.public class Main {
public static void main(String[] args) {
// print Hello World
}
}
Tab
to accept the suggestion, or continue typing to refine it.Shift+Ctrl+I
| Shift+Ctrl+G
.Enter
.Insert Code Block at Cursor
.Contributors: Norbert Loh (@NorbertLoh )