First off, I'm not looking for CTRL+SHIFT+P, but something a little more flexible. Is there any way to jump from anywhere inside a block to the beginning or end of that block?
Search – Eclipse Shortcuts CTRL SHIFT G – Search for current cursor positioned word reference in workspace. CTRL H – Java search in workspace.
2. 3. Quick Search became part of the Eclipse platform some time ago. It can be found in Search > Quick Search and the default key is Ctrl+Alt+Shift+L.
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.
CTRL + SHIFT + UP works and takes you to the beginning of the function. If you repeat it again takes you to the next function in the upward direction. CTRL + SHIFT + DOWN takes you to function names in DOWNWARD direction.
I tried in Version: Mars.1 Release (4.5.1)
I'm afraid the command you are looking for does not exist in vanilla Eclipse.
You can try Shift+Alt+↑ , which will select the enclosing element. It should eventually select to whole block. ← then moves the cursor to the beginning, → moves it to the end.
But it really isn't any faster than:
If your code is somewhat reasonably formatted (i.e. not everything on one line), this should always work.
Also check the list of possible shortcuts in Preferences->General->Keys, there isn't one that does what you want.
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