WEBVTT

00:00:00.079 --> 00:00:03.699
The last mode this inline chat has
is the edit

00:00:03.939 --> 00:00:07.079
full file mode,
at least at the point of time where I'm

00:00:07.099 --> 00:00:10.500
this. Now,
this name does what the name implies.

00:00:10.559 --> 00:00:13.840
You have some code highlighted and your

00:00:14.279 --> 00:00:17.680
prompt still kind of refers to this code,
but

00:00:18.159 --> 00:00:22.139
cursor feels free to edit other parts of
the file as well.

00:00:22.479 --> 00:00:26.399
If you have added selection,
it will only edit the selected code.

00:00:27.000 --> 00:00:30.959
So for example,
if I say rename all functions

00:00:31.079 --> 00:00:35.040
to just be named write file et

00:00:35.060 --> 00:00:38.899
cetera, instead of write to file

00:00:39.180 --> 00:00:43.000
et cetera,
it will only rename this function if I

00:00:43.080 --> 00:00:46.740
press enter.
It does not rename read from file or

00:00:46.919 --> 00:00:50.860
append to file, even though these
are all the functions

00:00:50.920 --> 00:00:54.840
rename.
But since I had added selection selected,

00:00:54.860 --> 00:00:58.599
well, selection.
So I'll hit escape to cancel this and

00:00:58.680 --> 00:01:02.540
instead,
if I change this to added full file, now

00:01:02.639 --> 00:01:06.159
it will, you guessed it, check
and edit the full file.

00:01:06.220 --> 00:01:09.620
So now if I say rename to write file et
cetera, it

00:01:09.699 --> 00:01:13.539
will go ahead, analyze the full file,

00:01:13.639 --> 00:01:17.339
and then make these changes.
So now it renamed write file

00:01:17.419 --> 00:01:19.639
here, but also here where we use it.

00:01:19.860 --> 00:01:21.819
Something it also didn't do before.

00:01:21.900 --> 00:01:25.319
And it also renamed read file
and append file.

00:01:25.360 --> 00:01:29.319
And again,
you can either accept these changes on a

00:01:29.440 --> 00:01:33.359
line basis with these buttons,
and you can also move through these

00:01:33.419 --> 00:01:37.119
lines with these arrows here, or you can

00:01:37.159 --> 00:01:40.819
reject or accept them all together with
these buttons or the shortcuts you see

00:01:40.839 --> 00:01:44.479
there.
So I'll just hit command enter in my case

00:01:44.559 --> 00:01:46.979
all.
