Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » short cut key to navigate to the starting of the loop or an if-else condition
short cut key to navigate to the starting of the loop or an if-else condition [message #765526] Wed, 14 December 2011 08:51 Go to next message
liharlihar is currently offline liharliharFriend
Messages: 4
Registered: December 2011
Junior Member
Hi guys,

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
or
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 #766824 is a reply to message #765526] Fri, 16 December 2011 13:48 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 12/14/2011 2:21 PM, liharlihar wrote:
> Please let me know, if this feature is available.
This feature is not available yet. If you want you can file an
enhancement request against JDT.

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Re: short cut key to navigate to the starting of the loop or an if-else condition [message #767877 is a reply to message #766824] Mon, 19 December 2011 05:53 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
I think you are looking for Alt+Shift+Up_Arrow. This key preference is assigned to the command 'Select Enclosing Element'
Re: short cut key to navigate to the starting of the loop or an if-else condition [message #768423 is a reply to message #767877] Tue, 20 December 2011 05:39 Go to previous message
liharlihar is currently offline liharliharFriend
Messages: 4
Registered: December 2011
Junior Member
Thank you Satyam Kandula.

It was exactly what i was looking out for.

Have a nice day.
Previous Topic:MessageBox with no shell
Next Topic:Ant build after clean not triggering
Goto Forum:
  


Current Time: Fri Apr 19 10:09:39 GMT 2024

Powered by FUDForum. Page generated in 0.02306 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top