Ravindra BagaleCourses & study guides Track your progress
AI CODING ASSISTANTS · CHAPTER 2 · SETUP

How to Set Up GitHub Copilot in Eclipse (Step by Step)

Many college and Java shops still use Eclipse. GitHub Copilot has an official Eclipse plugin with completions, chat, and (in current builds) agent-style help — you need Eclipse 2024-03 or newer and a Copilot plan (Free or paid).

In short: install Copilot from the Eclipse Marketplace or the GitHub update site, restart Eclipse, click Copilot in the bottom-right status area, sign in with a device code on GitHub, then accept suggestions and open chat.

Why Copilot in Eclipse

WHY

If your lab or office standardises on Eclipse, you should not have to switch editors just to try AI. Copilot brings completions and chat into the same workbench you already know.

What you need

WHAT
  • Eclipse 2024-03+: GitHub docs: version 2024-03 or above. Prefer a current 2025/2026 package if your lab allows it.
  • GitHub account + Copilot plan: Free tier has monthly limits; Pro/Business/Enterprise unlock more. Confirm limits on github.com — do not invent numbers.
  • Network: Browser access for the device-code sign-in.
  • Update site (fallback): If Marketplace drag-install fails: Help → Install New Software with the official Copilot update site URL from GitHub docs / Marketplace.

How setup flows

1 · Eclipse 2024-03+ Help → About 2 · Install Copilot Marketplace or update site 3 · Restart Eclipse full restart 4 · Sign in device code → GitHub 5 · Completions + chat review every suggestion

Install steps

HOW
  1. Confirm Eclipse version: Help → About Eclipse IDE. Upgrade if older than 2024-03.
  2. Option A — Marketplace: open the GitHub Copilot listing on marketplace.eclipse.org and use Drag to Install, or search inside Eclipse Marketplace client.
  3. Option B — Update site: Help → Install New Software… → Add… → paste the Copilot update site URL from the official Marketplace/docs page (starts with the Azure CDN host GitHub publishes). Select GitHub Copilot → Next → Finish.
  4. Restart Eclipse when prompted.
  5. In the bottom-right of the workbench, click Copilot → Sign In to GitHub.
  6. Click Copy Code and Open. Paste the device code in the browser, Continue, then Authorize GitHub Copilot Plugin.
  7. Return to Eclipse and click OK when it confirms. Try typing in a .java file until ghost text appears.

Settings

  1. Use the Copilot status entry to sign out, disable completions, or open chat (labels move slightly between plugin versions).
  2. Prefer the stable Marketplace listing for class machines; Nightly builds exist but can be unstable.
  3. If two AIs fight (for example another completion plugin), turn one off.

Configuration

First-task reminder
# Copilot in Eclipse — first task shape
# After sign-in, open a .java file and type a comment:
# // return true if s is a valid 6-digit India PIN shape (digits only)
# Accept a completion, then write a tiny JUnit test yourself.
  1. Keep project instructions short in comments or a README the team already uses — do not invent secret-laden config files.
  2. Agent / MCP features depend on your Copilot plan and plugin version — if a button is missing, you still have completions + chat on supported builds.

First task (5 minutes)

SAFE FIRST PROMPT

In chat: Write a Java 17 method isValidPin(String s) that returns true only when s has exactly 6 digits. No network calls. Then I will write the JUnit test.

  1. Accept or paste the method into a class.
  2. Write a small JUnit test yourself (or ask Copilot for test stubs, then edit).
  3. Run the test. Reject any suggestion that reads password files.
PathNotes
Marketplace drag-installEasiest when the Marketplace client works
Install New Software + update siteReliable when drag-install is blocked
Nightly update siteNewer fixes; not for every lab PC
Rule: Free-tier limits and chat caps change. Always re-check github.com/features/copilot before promising numbers to a class.
  • Do not paste .env, passwords, or real customer data into Copilot Chat.
  • Company policy may require Copilot Business with content exclusion.

Quick quiz

1. Minimum Eclipse version GitHub documents?

2024-03 or above.

2. Where do you start sign-in after install?

Bottom-right Copilot status → Sign In to GitHub.

3. What is the browser step?

Paste the device code and authorize the Copilot plugin.

4. Marketplace install failed — what next?

Help → Install New Software with the official Copilot update site.

Save tokens and money

SMART AI USE

Use completions for small edits. Save chat for real problems. On Free, short prompts help you stay inside the monthly cap.

Save these cards

INTERVIEW CARDAI Coding

Copilot in Eclipse?

Official plugin; Eclipse 2024-03+.
Device-code GitHub sign-in from status bar.
Ravindra Bagale · ravindrabagale.com/ai-coding
COMPARISON CARDAI Coding

Eclipse Copilot vs IntelliJ Copilot

Both: GitHub plan + completions/chat.
Eclipse: Marketplace or update site; status-bar sign-in.
Ravindra Bagale · ravindrabagale.com/ai-coding
REVISION CARDAI Coding

Eclipse Copilot in 4

Eclipse 2024-03+.
Install plugin → restart.
Device-code sign-in.
Review every suggestion.
Ravindra Bagale · ravindrabagale.com/ai-coding