/eclipse.copilot

Unofficial Github Copilot for Eclipse

Primary LanguageJavaEclipse Public License 2.0EPL-2.0

Tycho Build

Unofficial GitHub Copilot integration with Eclipse

Scanner completion

Features

  • Content-assist completions

Warning

This integration is unofficial. Consider trying Copilot with officially supported tools. Copilot is a cloud-based service provided by GitHub and only works with a paid subscription.

Alternatives

Closed-source Copilot4Eclipse by Genuitec

Prerequisites

Usage

See installation video demo or follow steps:

  • Copy the link to the update site: https://vgcpge.github.io/eclipse.copilot/
  • Follow the instructions to install the Copilot feature from the update site.
  • Warning dialogs "Trust Authorities" and "Trust Artifacts" will request confirmations. Install at your own risk and consider gifting me a code-signing certificate.
  • If necessary, configure Preferences/Language Servers/Copilot/Node.js executable
  • Hit Ctrl+Space for content-assist in the "Generic Text Editor" or the "Java Editor" (requires Java support to be installed separately). Any other editor supporting the standard APIs will work too (notably, "Text Editor" does not support content-assist).
  • When editing a text file (any source code file counts) for the first time, plug-in will request permission to access GitHub Copilot in your default web browser. An error will be shown if you don't have Copilot subscription.
  • A modal dialog will be shown with a code to supply in the browser. Once granted, permission is remembered by Copilot, this is a one-time operation.

Java

To work with Java Development Tools (JDT), install additionally "JDT Integration for LSP4E" from the main Eclipse update site. You may want to remove less useful completion assistants from Preferences/Java/Editor/Content Assist/Advanced. Leave "Language Server Proposals" enabled.

Credits