To implement it:
Start with a file, where there is a function defined, somewhere below your cursor. For example:
Code: Select all
<?php
// place cursor here
function foobar() {
}
Press 'End'
From the menu select: Search > Find
[X] Regular expressions
Directions: Down
Find what: function[[:space:]]+[[:alnum:]_]+[[:space:]]?(
Press 'Find Next'
Press 'Close'
Press 'Home'
Press 'Home'
(stop macro)
For the opposite (find previous function), repeat the above, but switch the 'Directions' option in the search dialogue to 'Up', and don't press 'End' in the beginning.
I have these macros bound to Ctrl+Down and Ctrl+Up.
Enjoy.
PS.: I reckon that these macros should work with any C-like language (Including C, C++ and Java)