Ask coding questions

← Back to all posts
Hotkey to move cursor outside brackets?
MatthewPenner (0)

So, if I type...
Print(
I am then shown:
Print()
And my cursor is inside he brackets.

If I type...
Print('
I am then shown:
Print('')
And my cursor is between the quotation marks.

If I THEN TYPE...
Hello
I am then shown:
Print("Hello")
My cursor is then to the right of the O and to the left of the last quotation mark.

Is there some kind of hotkey/shortcut key combination that can move my cursor outside the brackets or outside the quote?
or do I need to use the arrow keys or mouse to navigate to the outside?
The "end" button is also not what I have in mind.

I'm a pure beginner, but I feel like it would be crazy if such a shortcut doesn't exist.

Thanks for your time!

Commentshotnewtop
MatthewPenner (0)

I just figured it out.
ALT/Option + left or right arrow will move me outside the brackets I'm in.

I'm on a Mac at school now, so I'm not sure if this works on PC or if there's a better way of doing it, so feel free to share if anything comes to mind

morganny16 (27)

you could press down arrow if there are no lines beneath it