| |||
| Home > Searching and Replacing Text > Working with functions > Jumping to a function | |||
Select Edit → Go to → Jump to Function... to display the Jump to Function dialog box to see a list of all the functions in the source file shown in the current file tab, shown in Figure 12.3.
By default, the functions list is displayed sequentially, that is in the order the functions occur in the source file. Click the Sort check box to re-order the functions list into alphabetical order.
If you select another file tab, in the File Editor pane, and then click Scan for Functions the list is refreshed for the new source file.
Click Jump, or double-click on the required name, to locate a function in your source file. This scrolls the file in the File Editor pane so that the first line of the function is visible towards the top of the pane. Click Close to close the Jump to Function dialog box and place the cursor at the start of the function ready for editing.
When editing a large file, the Jump to Function dialog is useful to find your way around. Select Edit → Go to → Jump to Function... to display the Jump to Function dialog box containing the functions list for the current source file and the controls:
Moves the functions list highlight bar to show which function currently contains the cursor.
Scrolls the file in the File Editor pane so that the first line of the function, currently containing the cursor, is towards the top of the pane. Click Close to close the Jump to Function dialog box and to place the cursor at the start of the function ready for editing.