|short cut key to navigate to the starting of the loop or an if-else condition. [message #763775]
||Sat, 10 December 2011 09:51
Registered: December 2011
I have been using eclipse since 2 years , programming with java on windows xp.
I am not trying to report any bug.
I have a requirement. it is as follows.
I am in the middle of a big java file, inside a method. (say on some line number 1145).
I want to know whether this line of code is
1)inside a for-loop or while-loop
2) inside a if-else condition
without actually navigating to the top of the code where this loop starts, using the mouse scroll button,
i just want to navigate to the top of the for-loop or while-loop
using a shortcut key.
just like the shortcut key control+shift+up_arrow or control+shift+down_arrow keys, move to the next/previous methods, i want a short cut key to navigate to the starting of the loop or an if-else condition.
Please let me know, if this feature is available.
Hope i have posted my question clearly. If not, please feel free to write back, i will try to be more clear.
Thank you everybody
Look forward for your support.
|Re: short cut key to navigate to the starting of the loop or an if-else condition. [message #774812 is a reply to message #773241]
||Wed, 04 January 2012 12:13
| David M. Karr
Registered: July 2009
People often change key bindings, so it's best to also indicate what function you're recommending they use.|
In my Eclipse, Ctrl-Shift-P is bound to "go-to-matching-bracket". Assuming that's what you intended, that's not quite what he's looking for.
I'm not aware of any way to do this with stock Eclipse. However, this is one of the numerous additional functions provided by the Emacs+ plugin. The "backward-up-list" function is defined to "Move backward out of one level of bracketed expressions", so it's more general than "if" or "loop".
It's not necessary to be an Emacs user to get value out of Emacs+.
Powered by FUDForum
. Page generated in 0.02242 seconds