Ability to generate code in multiple files with AI Assistant

已回答

Is it possible to generate the code in multiple files from a single prompt, the way it's possible in Cursor? When working on a feature, it's common to touch multiple files:
1. create DTO class in […].dto.ts file
2. create  endpoint in […].controller.ts file and use DTO class class as body type
3. add some business logic in […].service.ts class and call it from endpoint

Cursor Composer can do this with a single prompt and offers preview of all 3 files and changes in them. If I wish to replicate similar workflow with AI Assistant in IntelliJ, 
1. I'll have to talk with it via chat and copy/paste relevant snippets OR
2. navigate to multiple files and generate very “locally scoped” code while I keep track of the overall progress of implementation in my head and use Assistant just to generate snippets of the code and not the whole feature.

With Cursor Composer I could generally implement 90% of the feature with a single prompt (and followup refinements, similar to how I can do them with AI Assistant) but with Assistant, I have to write multiple prompts, each in their own file.

0

Try “Continue”, it supports multiple files.

0

Hello Matic Leva ,

Unfortunately, it's not possible yet to generate multiple files in AI Assistant.

A similar feature request is reported in https://youtrack.jetbrains.com/issue/LLM-7148.

Please vote for it to prioritize it for the development team and receive notifications from the ticket.

0

请先登录再写评论。