Eclipse AI Coder Logo

Eclipse AI Coder

1. Overview

About the Project

An extension for the Eclipse IDE that brings AI-driven inline completion to the editor.

Features

  1. Local Model Support: Works with locally running models (e.g., Ollama, LM Studio).
  2. Cloud LLM Support: Supports Codestral (by Mistral AI)—requires a user-provided API key.
  3. Completion Triggers:
    • Automatic or manual via shortcut:
      • Inline completion: Ctrl + Shift + Space
      • Complete selected code: Ctrl + Shift + Space
  4. Code Generation/Editing: Inline edit/generate via instructions: Ctrl + Shift + 1
  5. Context Control: View and modify the prompt context.
  6. Insights: Token count, request durations, and status for each request.
  7. Java-Specific Features: Deep understanding of Java projects (adds imports, variables in scope to prompts).
  8. Multiline Toggle: Switch between single-line and multiline completions.

Installation

2. Screenshots

3. Comparison with Other Solutions

Feature Eclipse AI Coder Tabnine GitHub Copilot Copilot4Eclipse Tabby GitLab Duo Amazon Q
Inline Completion
Eclipse Support
Non-commercial
Open Source
Manual Trigger
Bring Your Own Key
Local LLMs
Toggle Multiline
Context Control
Next Edit Suggestion
LLM Providers Local, Mistral Tabnine GitHub Copilot GitHub Copilot Deepseek, Local, Mistral GitLab Amazon

4. LLM Providers

Codestral (Mistral AI)

Ollama

OpenAI-Compatible APIs

5. Documentation

Controls (Shortcuts)

Shortcut Selection Action
Ctrl + Shift + Space Trigger inline completion at cursor position.
Ctrl + Shift + Space Trigger completion/correction of selected code.
Ctrl + Shift + 1 Open dialog to generate code at cursor via instruction.
Ctrl + Shift + 1 Open dialog to edit selected code via instruction.
Ctrl + 3 Open quick access for code generation instructions at cursor.
Ctrl + 3 Open quick access for editing instructions on selected code.

Settings

Setting Description
Enable Multiline Completion Allow multiline suggestions.
Enable Autocomplete Trigger completions automatically (or only via shortcut if disabled).
Only on Change Autocomplete Trigger only after file changes (e.g., typing).
Ignore JRE Classes Exclude Java Runtime Environment classes from context (assumed known by LLMs).
Cleanup Code on Apply Format Java code when applying suggestions.
Maximum Prefix Size Lines before cursor to include in prompt.
Maximum Suffix Size Lines after cursor to include in prompt.
Maximum Tokens Limit tokens generated by the LLM.
Debounce (ms) Delay before autocompletion triggers (to avoid rapid recalculations).

Contexts (Prompt Inclusions)

Context Description Filetype
Project Informations Project name, location, Java version (for Java projects). All
File Tree Tree structure of project files. All
Dependencies List of project dependencies (WIP). All
Open Editors Content of currently open files. All
Super (Java) Interfaces of supertypes in the current Java file. Java
Scope (Java) Interfaces of types in the current scope. Java
Imports (Java) Interfaces of imported types. Java
Package (Java) Interfaces of types in the current package. Java
User Custom user-provided content. Add content in context view (right click) All
Last Edits Source code around recently edited locations. All
Clipboard Content of the clipboard. All
Fill in Middle Current edit location + surrounding context lines. All

7. Feedback