"Create this file" button in the AI chat window

I still mostly prefer using the AI chat, rather than Composer, as it seems to give more accurate results and it’s easier for me to understand all the changes.

Commonly the AI will say something like:

To do this, lets create a new file:
...
export function exampleFile() {
...

Now, lets use this new file in your existing code:
...
import { exampleFile } from '@/examples/exampleFile';
...

We can infer from the response, that the AI expects us to create a new file named exampleFile in examples folder containing the code it provided.

It would be really handy to have a “create this file” button so we can avoid having to do that manually.

Hi @KamilTheDev

Actually, the chat can sometimes create files, but I think this option should still be added.

1 Like

How do you get chat to create a new file??

Just ask it? Haven’t been able to do that for me