vscode-copilot-release icon indicating copy to clipboard operation
vscode-copilot-release copied to clipboard

Edit multiple files in one request with Copilot

Open ZFYL opened this issue 1 year ago • 3 comments

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!

ZFYL avatar Apr 02 '24 21:04 ZFYL

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

maciekgajewski avatar Sep 10 '24 10:09 maciekgajewski

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.

AdrianLThomas avatar Oct 02 '24 17:10 AdrianLThomas

no news on this?

marian-toaderr avatar Oct 03 '24 13:10 marian-toaderr