WEBVTT

00:00:00.079 --> 00:00:04.038
Another neat feature introduced by GitHub
Copilot is that sometimes

00:00:04.059 --> 00:00:07.859
you'll see this AI lightbulb icon button

00:00:07.899 --> 00:00:11.859
here. If you click that,
you'll get some smart actions

00:00:11.920 --> 00:00:15.819
execute with help of AI,
and these actions will depend on

00:00:15.839 --> 00:00:19.540
the context you're in
and the thing you clicked on or for

00:00:19.620 --> 00:00:23.499
lightbulb appeared. Here, for example,
I could use AI to generate

00:00:23.579 --> 00:00:27.440
docs or tests for this function,
and you can tell that it's an

00:00:27.559 --> 00:00:31.180
AI action by these sparkle icons.
So here if I

00:00:31.260 --> 00:00:35.059
generate docs,
it actually opens another feature,

00:00:35.099 --> 00:00:38.540
chat, to which we'll go back,
but it will populate that with a

00:00:38.639 --> 00:00:42.560
prompt invisibly, so to say, for me,
and all you have to do

00:00:42.659 --> 00:00:46.559
is just accept the result
if you're happy with it by

00:00:46.619 --> 00:00:50.500
either clicking this check mark
or by clicking Keep here, and now

00:00:50.580 --> 00:00:54.319
that added a doc string to this function
for me.
