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

Edit multiple files in one request with Copilot #1098

Closed
ZFYL opened this issue Apr 2, 2024 · 4 comments
Closed

Edit multiple files in one request with Copilot #1098

ZFYL opened this issue Apr 2, 2024 · 4 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@ZFYL
Copy link

ZFYL commented Apr 2, 2024

I am using Copilot in a Django project which i try to keep really vanilla. Thus it's using all the basic building blocks and Copilot easily applies the best practices. But i find myself in long sessions of copy paste into different linked files urls.py, models.py, views.py, serializers.py and tests.py etc. So these are simple changes that need to be made in 8+ files every time.

Would be nice to have a @workspace /edit Add a new field to the Requests model and change all the subsequent related files in the project that shows a similar UI like /new and when pressing an Apply changes button it adds the changes.

The changes could be reviewed during a commit. If the commit contains breaking changes we could rollback the changes.

Is there in plans to add such a feature? Is there a similar plugin or a command combination that does this or similar?

Thanks for the response!

@github-actions github-actions bot added the triage-needed Issues needing to be assigned to the prospective feature owner label Apr 2, 2024
@digitarald digitarald added feature-request Request for new features or functionality and removed triage-needed Issues needing to be assigned to the prospective feature owner labels Apr 3, 2024
@maciekgajewski
Copy link

Yep. Changing both header and implementation in a C++ project would be nice

@AdrianLThomas
Copy link

AdrianLThomas commented Oct 2, 2024

This would be great for scenarios where you want to do a larger "find and replace" but where you can't do it with a simple regex. For example changing multiple test files to meet a new convention / meet best practice. I can envisage a prompt to explain the problem and Copilot could go ahead and make the change to all those files.

@marian-toaderr
Copy link

no news on this?

@isidorn
Copy link

isidorn commented Oct 31, 2024

This is now done, please try out the Copilot Edits view and let us know what you think
https://code.visualstudio.com/docs/copilot/copilot-edits

@isidorn isidorn closed this as completed Oct 31, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

6 participants