So, Cursor has this smart completion and suggestions feature.
This feature also allows you to write code that wouldn't work and it'll try to fix
it for you.
For example, here I can add parseInput like this because I want to add a function called
parseInput but I forgot to add the def keyword.
Well, you see it here in this box.
That's what Cursor suggests to me.
It wants to add the def keyword for me, it wants to add the list of parameters and it
even wants to add the code.
And it wants to add another function, a bit cut off here, where it then also parses the
output.
So if I now hit tab with that, it adds all that code here, just like this.
And again, of course, I can remove what I don't want.
But here with that, I got a way of parsing some user input.
In this case, it assumes that I want to split it after every line break.
Now, of course, we could tweak this.
You're still a developer.
Don't forget that.
You can write your own code, but you can really speed up your development flow by using this
smart suggestions feature.
For example, here, I can also type if and again, since I'm in a Python file here, Cursor
assumes that I maybe want to use this code here that I want to add this main clause here
to run some code when this file is executed as a script.
And again, going to a new line gets me some new suggestions.
I can accept them by hitting tab.
I can also view more details here, by the way.
Whenever you got a box like this, you can click view to see more about that and then
accept it here with that checkmark.
And you can go through your entire code like this to read some file, print the input text,
parse the input, and then do whatever you want to do, write it to some output file and
so on.
Now again, tweak that code however you want.
You can write some code and Cursor will take that into account, of course.
But the main takeaway here really is that the tab key and this suggestions feature is
pretty powerful in Cursor and does quite a bit more, at least right now, than GitHub Copilot.