Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support "smart" apply code from chat #3028

Open
Tracked by #2967
wsxiaoys opened this issue Aug 30, 2024 · 1 comment
Open
Tracked by #2967

support "smart" apply code from chat #3028

wsxiaoys opened this issue Aug 30, 2024 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@wsxiaoys
Copy link
Member

wsxiaoys commented Aug 30, 2024

The process can be implemented using a two-step prompting approach:

  1. Identify the line range where inline editing will be applied (let LLM to generate a range)
  2. Reuse inline editing, generate a prompt with context and code in editor.

Inline Editing Example

For similar functionality, consider the following examples:

Cody (Smart Apply):
Cody Smart Apply Example

Double(CodeSnap):
CodeSnap Feature Documentation

@wsxiaoys wsxiaoys added the good first issue Good for newcomers label Aug 30, 2024
@wsxiaoys wsxiaoys changed the title support "smart" apply code in chat window in editor support "smart" apply code from chat Aug 30, 2024
@Sma1lboy
Copy link
Contributor

I can try this if nobody doing rn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants