WEBVTT

1
00:00:00.000 --> 00:00:03.660
So, at this point you already learned

2
00:00:03.660 --> 00:00:06.540
quite a bit about GitHub Copilot chat

3
00:00:06.540 --> 00:00:08.720
and what you can do with the inline chat

4
00:00:08.720 --> 00:00:11.180
and the separate chat in the sidebar.

5
00:00:12.020 --> 00:00:14.440
Now there is one other interesting

6
00:00:14.440 --> 00:00:16.760
feature about that sidebar chat.

7
00:00:17.400 --> 00:00:19.720
Because of course you can use this chat

8
00:00:19.720 --> 00:00:22.180
as you learned it to ask questions,

9
00:00:22.600 --> 00:00:26.000
generate code, reference files, bring in

10
00:00:26.000 --> 00:00:28.780
other participants, other context and so

11
00:00:28.780 --> 00:00:28.940
on.

12
00:00:29.060 --> 00:00:31.760
You can do all that, but there also is

13
00:00:31.760 --> 00:00:34.100
another mode in which you can use this

14
00:00:34.100 --> 00:00:34.580
chat.

15
00:00:35.460 --> 00:00:40.380
There is this Copilot Edits mode as it's

16
00:00:40.380 --> 00:00:40.680
called.

17
00:00:41.320 --> 00:00:43.840
So the name is Copilot Edits.

18
00:00:45.900 --> 00:00:47.640
And what's this mode all about?

19
00:00:48.220 --> 00:00:51.980
Well, this mode here is in the end an

20
00:00:51.980 --> 00:00:54.960
enhanced version of the chat you could

21
00:00:54.960 --> 00:00:55.260
say.

22
00:00:56.700 --> 00:00:59.700
It is a mode that's built or that's provided

23
00:00:59.700 --> 00:01:03.060
to help with multi-file editing sessions.

24
00:01:03.580 --> 00:01:06.840
So as it says here, it's about editing a set

25
00:01:06.840 --> 00:01:10.480
of files, multiple files in an easy and

26
00:01:10.480 --> 00:01:11.220
convenient way.

27
00:01:11.500 --> 00:01:15.080
It's actually a feature inspired by Cursor's

28
00:01:15.080 --> 00:01:17.300
Composer feature about which you will

29
00:01:17.300 --> 00:01:19.280
learn later in the course in the Cursor

30
00:01:19.280 --> 00:01:19.800
section.

31
00:01:21.220 --> 00:01:23.320
The idea is that you can still ask your

32
00:01:23.320 --> 00:01:26.000
questions here, like add user

33
00:01:26.000 --> 00:01:28.680
authentication, if that would be a thing

34
00:01:28.680 --> 00:01:30.740
you wanted to do in your application.

35
00:01:31.540 --> 00:01:33.500
And you could bring in more files that

36
00:01:33.500 --> 00:01:36.240
are irrelevant for that query with ease by

37
00:01:36.240 --> 00:01:39.060
simply using Add Files and, and that's

38
00:01:39.060 --> 00:01:41.140
the interesting part, when it comes to

39
00:01:41.140 --> 00:01:43.700
fulfilling your request, when it comes to

40
00:01:43.700 --> 00:01:47.060
answering, this mode here will actually

41
00:01:47.060 --> 00:01:50.240
automatically suggest the creation of

42
00:01:50.240 --> 00:01:53.080
new files and help with multi-file code

43
00:01:53.080 --> 00:01:56.440
edits that are necessary due to your

44
00:01:56.440 --> 00:01:57.120
prompt here.

45
00:01:57.820 --> 00:02:01.180
So if I send that query, for example, it

46
00:02:01.180 --> 00:02:03.580
automatically analyzes the files it already

47
00:02:03.580 --> 00:02:04.160
has.

48
00:02:04.720 --> 00:02:06.840
And if necessary, it would also consider

49
00:02:06.840 --> 00:02:10.120
creating new files and then suggest the

50
00:02:10.120 --> 00:02:12.960
specific edits that are needed in the

51
00:02:12.960 --> 00:02:13.800
different files.

52
00:02:15.000 --> 00:02:17.280
So this is a mode that simplifies the

53
00:02:17.280 --> 00:02:19.420
process of making code changes across

54
00:02:19.420 --> 00:02:21.880
multiple files so that you don't get one

55
00:02:21.880 --> 00:02:24.100
long answer where you then have to

56
00:02:24.100 --> 00:02:26.380
manually copy and paste code snippets

57
00:02:26.380 --> 00:02:29.080
into the right files, but that it instead

58
00:02:29.080 --> 00:02:32.280
makes those edits or suggests those

59
00:02:32.280 --> 00:02:35.660
edits in multiple files automatically for

60
00:02:35.660 --> 00:02:35.940
you.

61
00:02:36.700 --> 00:02:39.600
So this copilot edits mode here can be

62
00:02:39.600 --> 00:02:41.640
another very interesting mode you want

63
00:02:41.640 --> 00:02:44.460
to consider using for making multi-file

64
00:02:44.460 --> 00:02:45.340
code edits.

65
00:02:46.460 --> 00:02:49.220
And as mentioned, it is a feature you'll

66
00:02:49.220 --> 00:02:53.060
also see again later in the course, kind of,

67
00:02:53.140 --> 00:02:56.080
in the cursor section, because cursor,

68
00:02:56.400 --> 00:02:58.980
this AI-powered IDE, which we'll explore

69
00:02:58.980 --> 00:03:02.620
in a later section, actually pioneered this

70
00:03:02.620 --> 00:03:06.080
modus or a similar feature, which will

71
00:03:06.080 --> 00:03:08.620
also help with working across multiple

72
00:03:08.620 --> 00:03:09.120
files.

73
00:03:09.440 --> 00:03:11.320
But it's good to know that it also exists

74
00:03:11.320 --> 00:03:12.600
here in GitHub Copilot.

