WEBVTT

00:00:00.180 --> 00:00:03.920
Another place in cursor where you can use
this inline chat

00:00:04.360 --> 00:00:08.340
is the terminal, because since this is,
in the end, Visual Studio

00:00:08.420 --> 00:00:12.340
Code, at least the base
is Visual Studio Code, you have a terminal

00:00:12.380 --> 00:00:16.360
integration.
You can open an integrated terminal

00:00:16.370 --> 00:00:19.980
here, like for example, git init
if you wanted to do that or anything

00:00:20.040 --> 00:00:23.790
else. Now,
let's say I want to initialize a new git

00:00:23.820 --> 00:00:27.670
repository here,
but I wanna change the name of the user

00:00:27.740 --> 00:00:31.680
also maybe tweak some upper settings,
and I don't remember all the exact git

00:00:31.720 --> 00:00:33.430
commands I need to execute for that.

00:00:33.460 --> 00:00:36.870
Well, in the terminal,
with the terminal selected, I can

00:00:36.980 --> 00:00:40.430
also press the shortcut that's shown here,
Command+K or

00:00:40.540 --> 00:00:44.520
Control+K depending on the operating
system, to open this inline chat in the

00:00:44.560 --> 00:00:48.440
terminal.
And then you can describe the command you

00:00:48.480 --> 00:00:52.440
for example, "Init new git repo for user

00:00:52.600 --> 00:00:56.180
with username max and email

00:00:56.240 --> 00:01:00.170
max@example.com." Now, you could

00:01:00.200 --> 00:01:04.110
press this shortcut
or click this button here to ask a quick

00:01:04.120 --> 00:01:06.830
and get an answer instead of creating a
command.

00:01:06.880 --> 00:01:10.800
If you hit Enter or press this button
though, a command will be created

00:01:10.820 --> 00:01:14.240
instead. So you see,
it did now generate this command.

00:01:14.280 --> 00:01:17.580
Now, of course,
you should always carefully check these

00:01:17.640 --> 00:01:21.060
commands, especially
if they're about deleting or moving

00:01:21.220 --> 00:01:24.980
files.
You should not blindly trust the AI

00:01:25.080 --> 00:01:28.710
but it's a quick way of getting some
commands which you might not remember by

00:01:28.740 --> 00:01:32.480
heart. Now, what's very important is
that these commands

00:01:32.560 --> 00:01:36.060
are created, they're not executed on your

00:01:36.100 --> 00:01:39.740
behalf.
You still have to press the Enter key

00:01:39.800 --> 00:01:43.740
execute them,
so you still have control over them

00:01:43.800 --> 00:01:47.580
don't have to fear
that some unintended command

00:01:47.650 --> 00:01:50.020
why you should carefully read
and check them.

00:01:50.080 --> 00:01:53.850
This is, of course, especially useful
if you, for example, want to find all

00:01:53.920 --> 00:01:57.890
files that are from today and

00:01:58.100 --> 00:02:00.640
end with .TXT or

00:02:00.650 --> 00:02:04.330
.CSV. If you again execute this

00:02:04.360 --> 00:02:08.199
here,
you'll get a command you can execute on

00:02:08.538 --> 00:02:11.580
find all these files based on the criteria
you

00:02:11.620 --> 00:02:15.600
defined.
And this is definitely not a command I

00:02:15.640 --> 00:02:18.260
to be honest.
