문제

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 :-)

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top