cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Combined analysis of multiple code files

Open baitianshi opened this issue 2 years ago • 4 comments

Place a complete project in the directory, which can be combined with other code files. Is the analysis result given? Can I analyze the entire project?

baitianshi avatar Mar 29 '23 16:03 baitianshi

hey! not sure I understand yet. Are you asking if we can do multi-file changes?

truell20 avatar Mar 30 '23 00:03 truell20

Yes, multi-file changes. Java code analysis and repair between multi-files.

It's not just limited to analyzing only one piece of code.

This is a good idea and should be added in future versions. :)

sunray-ley avatar Mar 30 '23 08:03 sunray-ley

hey! not sure I understand yet. Are you asking if we can do multi-file changes?

Yes, It's not just limited to analyzing only one piece of code. multi-file changes. Java code analysis and repair between multi-files I hope there will be further updates to the functionality

baitianshi avatar Mar 30 '23 09:03 baitianshi

While you can use code from multiple files to help the AI understand what you want from it (see my comment here https://github.com/getcursor/cursor/issues/460#issuecomment-1501630408), there's no way to have the AI edit multiple files in one request, but it sounds like it may be on the horizon, so will triage as an enhancement.

danperks avatar Apr 10 '23 18:04 danperks

In the meantime, it would be handy if there was a "Jump to File" or "Create File" button next to the copy button in code blocks returned by the chat. While the AI can't edit multiple files yet, this would make it a bit faster for the user to do it manually.

oersted avatar Oct 06 '23 16:10 oersted

While Cursor can't directly edit multiple files at once, you can add multiple files to the chat with the @ symbol and ask it to tell you what you need to do in each one. However, multi-file editing is an inevitable feature in the future.

jakobFNF avatar Oct 19 '23 20:10 jakobFNF