Question

I'm looking for a shortcut to jump to the other end of a long code block (can be if, for, while, end of function, class, etc.). Similar to "go to matching brace" in Visual Studio / C++.

(I've been searching for this sometime now, StackOverflow, Google, ...)

Thanks!

Edit: with "go to matching brace", I meant { and } in C++ and Java

Edit2: I'm also happy with confident answers that say there is no such feature :-)

Was it helpful?

Solution

Shift-Alt-Up (Select enclosing scope) works quite well, although it selects the text. But you can then press the right arrow once to deselect, and the cursor should be right at the end of the scope.

An actual "Jump to end of scope" doesn't exist yet.

OTHER TIPS

PyDev (actually Eclipse) has this functionality too. You can find it uder:

Window -> Preferences -> General -> Keys

enter image description here

In the TextEdir widget labeled as Binding you can set you key combination.

Note: This is the the functionality that you see en Visual Studio, but it will not works in Python, since code blocks in python aren't delimited by brackets. So, this only works with parentheses and square brackets.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top