This task will show you how to navigate the document and text, in most cases without reaching for the mouse or track pad.
The two available options to quickly navigate to the text are as follows:
Go to Line... will move your cursor to the specified line number. From the menu, select Navigation | Go to Line… (Command + L).
Go to Symbol... will move your cursor to the beginning of a function, method, or other symbol. From the menu, select Navigation | Go to Symbol… (Shift + Command + T).
Go to Line... (Command + L) is very useful for situations where you know the precise line you want to edit. For example, when you're debugging some code and the error message code gives the problem line number.
Go to Symbol... (Shift + Command + T) is mainly used for programming languages such as JavaScript and PHP, where functions or methods are defined in the document. When this is invoked, a window will appear with the names of the functions or methods available, as shown in the following screenshot:

Start entering the method name and it will match and filter the list based on what you enter. Go to Symbol... (Shift + Command + T) is extremely helpful for long documents of code where scrolling and navigating line by line is unreasonable.
You can also open the function pop up in the status menu (located at the bottom of the document window) to display all of the functions or methods in your document. This is shown in the following screenshot:

Along with the quick navigation shortcuts, there are also ways to move the cursor and scroll the document easily without using the mouse.
The following keyboard shortcuts will move your cursor:
Shortcut |
Description |
---|---|
Shift + F |
One character forward. |
Shift + B |
One character backward. |
Shift + P |
Up one line. |
Shift + N |
Down one line. |
Shift + A |
Beginning of line. |
Shift + E |
End of line. |
Option + right arrow |
Right one word (Mac convention). |
Option + left arrow |
Left one word (Mac convention). |
Note that the first four movements can be accomplished by using the arrow keys, but sometimes it's faster to keep your fingers on the keyboard home row.
In the situation where you want to take a peek within the document without moving the cursor, you can use the keyboard shortcut Command + Option + Control plus the arrow keys. For example, to scroll up, you would press Command + Option + Control + up arrow. Your cursor will stay put and you can go back to it by using the Command + J (that is, select Edit | Find | Jump to Selection) keyboard shortcut.