I have certain methods/functions in a class which are fairly very large, 3-4k lines. (Poor design, dont ask) which makes navigation very difficult.
Is there a certain shortcut in eclipse, such that, if i am at a certain line of code, using the shortcut will take me directly to the beginning of the function or atleast give me the name of the function.
Shortcut commands in Eclipse IDE:CTRL + O –> used to search methods inside same Java class. CTRL + H –> opens dialog box which provides number of options to find method.
In Eclipse, if the cursor is over a word and you press Ctrl + K you will jump to the next occurrence of that word in the file.
Open project, file, etc. Ctrl+Shift+R. Open Resource (file, folder or project) Alt+Enter. Show and access file properties.
Ctrl+o might be what you are looking for.
It will list out all the methods under the class file.
You just take a look at all other shorcut keys available here http://www.shortcutworld.com/en/win/Eclipse.html.
Hope it helps.
You can use Outline view. If you have your cursor within a method, the appropriate method will be selected in the view and double-clicking on the selected method will take you to the top of the method.
Screenshot coming up.
Edit:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With