microsoft / microsoft/copilot-for-eclipse

Support # variables

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
126
Forks
60
Avg merge
2d 6h
Merged PRs (30d)
5

Description

When working with larger files Copilot often is distracted by other code in the same file. Currently it is not easily possible to let the agent refactor a single method or code block or give focus on some specific code. Having variables like: #selection, #block, #line, #function would help a lot to get better results.

Please consider supporting this for Eclipse too. With VS Code it seems this is even done somehow automatic. In VS code when I select a method and invoke the Agent it is working on this method only. In Eclipse when I do the same it does seem to edit whatever in the file and do not know about my selection.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating how Eclipse selections and editor context are passed to Copilot, then compare that behavior with the VS Code selection behavior described in the issue. Done means the agent can focus on selected methods or blocks and support the proposed #selection, #block, #line, and #function variables.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop, developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.