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.