WEBVTT

1
00:00:01.620 --> 00:00:07.600
So, Cursor has this smart completion and suggestions feature.

2
00:00:08.540 --> 00:00:16.100
This feature also allows you to write code that wouldn't work and it'll try to fix

3
00:00:16.100 --> 00:00:16.740
it for you.

4
00:00:17.780 --> 00:00:23.240
For example, here I can add parseInput like this because I want to add a function called

5
00:00:23.240 --> 00:00:27.260
parseInput but I forgot to add the def keyword.

6
00:00:28.480 --> 00:00:31.520
Well, you see it here in this box.

7
00:00:31.660 --> 00:00:33.820
That's what Cursor suggests to me.

8
00:00:34.020 --> 00:00:38.840
It wants to add the def keyword for me, it wants to add the list of parameters and it

9
00:00:38.840 --> 00:00:39.920
even wants to add the code.

10
00:00:40.100 --> 00:00:46.760
And it wants to add another function, a bit cut off here, where it then also parses the

11
00:00:46.760 --> 00:00:47.140
output.

12
00:00:48.620 --> 00:00:54.000
So if I now hit tab with that, it adds all that code here, just like this.

13
00:00:56.120 --> 00:00:58.400
And again, of course, I can remove what I don't want.

14
00:00:58.900 --> 00:01:02.120
But here with that, I got a way of parsing some user input.

15
00:01:02.220 --> 00:01:07.120
In this case, it assumes that I want to split it after every line break.

16
00:01:08.200 --> 00:01:09.560
Now, of course, we could tweak this.

17
00:01:09.980 --> 00:01:11.180
You're still a developer.

18
00:01:11.580 --> 00:01:12.380
Don't forget that.

19
00:01:12.540 --> 00:01:17.800
You can write your own code, but you can really speed up your development flow by using this

20
00:01:17.800 --> 00:01:19.800
smart suggestions feature.

21
00:01:22.040 --> 00:01:28.460
For example, here, I can also type if and again, since I'm in a Python file here, Cursor

22
00:01:28.460 --> 00:01:36.020
assumes that I maybe want to use this code here that I want to add this main clause here

23
00:01:37.140 --> 00:01:40.820
to run some code when this file is executed as a script.

24
00:01:41.600 --> 00:01:44.620
And again, going to a new line gets me some new suggestions.

25
00:01:45.020 --> 00:01:47.340
I can accept them by hitting tab.

26
00:01:47.420 --> 00:01:49.600
I can also view more details here, by the way.

27
00:01:50.680 --> 00:01:57.080
Whenever you got a box like this, you can click view to see more about that and then

28
00:01:57.080 --> 00:01:59.620
accept it here with that checkmark.

29
00:02:00.320 --> 00:02:09.180
And you can go through your entire code like this to read some file, print the input text,

30
00:02:10.160 --> 00:02:15.220
parse the input, and then do whatever you want to do, write it to some output file and

31
00:02:15.220 --> 00:02:15.620
so on.

32
00:02:16.859 --> 00:02:19.780
Now again, tweak that code however you want.

33
00:02:20.060 --> 00:02:24.360
You can write some code and Cursor will take that into account, of course.

34
00:02:24.720 --> 00:02:30.500
But the main takeaway here really is that the tab key and this suggestions feature is

35
00:02:30.500 --> 00:02:36.940
pretty powerful in Cursor and does quite a bit more, at least right now, than GitHub Copilot.

