WEBVTT

1
00:00:01.800 --> 00:00:07.840
So, here I'm in a brand new empty folder, I opened it with the cursor IDE, I did sign

2
00:00:07.840 --> 00:00:12.500
into my account where I have the pro plan, though as mentioned you don't technically

3
00:00:12.500 --> 00:00:14.900
need it, there just will be some restrictions.

4
00:00:15.980 --> 00:00:21.200
And now we can use cursor here, of course, and I'll again start with another Python

5
00:00:21.200 --> 00:00:23.100
program here as an example.

6
00:00:25.000 --> 00:00:31.760
And I'll name my file here writer.py because I want to write a simple program which takes

7
00:00:31.760 --> 00:00:34.480
some user input and writes that to a file.

8
00:00:35.720 --> 00:00:42.480
So I'll start by again defining a function and just as with GitHub Copilot, cursor now

9
00:00:42.480 --> 00:00:47.720
becomes active and suggests me a completion for this line.

10
00:00:48.060 --> 00:00:54.760
And that's important, it looks like GitHub Copilot here, it has the same look, but this

11
00:00:54.680 --> 00:00:57.800
actually now is cursor since I'm using the cursor IDE.

12
00:00:59.440 --> 00:01:05.900
By the way, since cursor is a copy of VS Code, you can use VS Code extensions in here

13
00:01:05.900 --> 00:01:11.540
and you could install and use GitHub Copilot, but of course typically you don't want to

14
00:01:11.540 --> 00:01:16.720
do that because you would have conflicting AI assistance, which does not sound like a

15
00:01:16.720 --> 00:01:17.140
good idea.

16
00:01:18.940 --> 00:01:24.600
So here I got this cursor suggestion and with a tab, just as with GitHub Copilot, I

17
00:01:24.600 --> 00:01:25.320
can confirm it.

18
00:01:26.120 --> 00:01:31.380
I do not get different suggestions here if I hover over it, though.

19
00:01:32.600 --> 00:01:38.820
So as you see here, I get some suggestions, actually got more suggestions before anyways,

20
00:01:39.400 --> 00:01:42.400
but I can't hover over them to see variations.

21
00:01:44.580 --> 00:01:50.680
So here, I'll now re-add that colon to get more suggestions again and you see, now it's

22
00:01:50.680 --> 00:01:55.320
suggesting here that it adds this code and you see, it actually wants to add the code

23
00:01:55.320 --> 00:02:00.860
for this write file function and then it also wants to add another function for reading

24
00:02:00.860 --> 00:02:01.320
the file.

25
00:02:03.200 --> 00:02:10.180
I can confirm this of course, but I can also now delete parts of that if I don't want

26
00:02:10.180 --> 00:02:13.200
that and it'll now suggest even more.

27
00:02:13.700 --> 00:02:20.720
And in general, it's fair to say that this suggestions feature is more aggressive and

28
00:02:20.720 --> 00:02:26.520
also a bit more powerful in cursor, at least at the point of time where I'm recording this.

29
00:02:27.690 --> 00:02:34.860
So here it's suggesting that I have this write file function with this code and if I get

30
00:02:34.860 --> 00:02:39.020
out of this function, it wants to suggest this read file function.

31
00:02:40.760 --> 00:02:46.700
And again, of course, I can confirm this, confirm all this and be done.

32
00:02:47.820 --> 00:02:54.000
And now it added a bunch of functions that allow me to interact with a file and write

33
00:02:54.000 --> 00:02:57.740
to it, read from it, append content to it, whatever I want to do.

34
00:02:58.920 --> 00:03:04.840
But that's just the tip of the iceberg of what this cursor autocompletion feature can

35
00:03:04.840 --> 00:03:05.380
do for you.

