There are several ways to move throughout text:
- Mouse and navigation keys
- Incremental search
- The Go To Line command
- The Navigate Backward and Navigate Forward buttons
Navigating with the mouse and keys
The most common way to navigate text is with the mouse and navigation keys:
- Use the arrow keys to move one character at a time, or, in Design view, use the arrow keys in combination with the CTRL key to move one word at a time. Arrow keys move one line at a time also.
- Click a location with the mouse.
- Use the scroll bars or the scroll wheel on a mouse to move through the text.
- Use the HOME, END, PAGEUP, and PAGEDOWN keys.
- Use CTRL+UP ARROW and CTRL+DOWN ARROW to scroll the view without moving the insertion point.
You can also go directly to a procedure by clicking the Object box in the upper left corner of the document, and then clicking a procedure in the Event box in the upper right corner of the document.
Navigating with Bookmarks
To edit a document elsewhere and then return to your current location, add a bookmark.
To add a temporary bookmark
- Click the line you want to return to at later time.
- Click Toggle Bookmark . You should see the temporary (or "unnamed") bookmark symbol appear next to the line.
- Alternatively, you can press CTRL+K twice to toggle the bookmark.
To return to a temporary bookmark
- Click Next Bookmark
or Previous Bookmark
. Alternatively, you can press CTRL+K and then CTRL+N for the next bookmark, or CTRL+K and then CTRL+P for the previous bookmark within a document.
Another way to return to a location is by using the Navigate Backward and Navigate Forward buttons.
To remove one or more temporary bookmarks in a document
- Click Clear Bookmarks
- Press CTRL+K and then CTRL+L to erase all bookmarks in the current document.
Note To delete a single bookmark, click the line that has the bookmark and press CTRL+K twice.
Using incremental search is often a good way to navigate to another location in the current document. You can search a single document or window by entering text character by character to locate text as the characters accumulate.
To navigate using incremental search
- On the Advanced submenu (Edit menu), click Incremental Search or press CTRL + I.
The cursor icon changes to a binocular with an arrow, indicating the search direction, and the status bar displays "Incremental Search:".
Note Incremental search uses the last setting choice for the Match case option located in the Find or the Replace dialog box.
- Type your search string to move to another location.
The status bar displays the text you are entering while the editor highlights the first occurrence that matches the text. As you continue typing, the editor moves to the next match and highlights it. If no matches are available, the status bar displays "Incremental Search: <text> (not found)".
Note Incremental search does not apply to text that has been collapsed or concealed. Also, regular expressions and wildcards are not available for use in incremental search text.
- Click Navigate Backward to return to where you were working before you used incremental search.
Use the following key combinations when you search incrementally.
|Stop incremental search||ESC|
|Remove a character from the search text||BACKSPACE|
|Change the direction of the search||CTRL+SHIFT+I|
|Move to the next match for the search text in the file||CTRL+I|
Go To Line command
Use the Go To Line command to go to a specific line number.
To go to a specific line number
- Click Optionson the Tools menu and navigate from the Text Editor tab to the General page of the All Languages folder.
- Click Line numbers.
- Click Go To on the Edit menu.
- Enter the line number you want to view and click OK.
Navigate Backward / Navigate Forward buttons
Use the Navigate Backward button to navigate to previously visited locations in the document, and then use the Navigate Forward button to return afterwards. These buttons are particularly useful when using commands that take you far away from where you are currently working and you want to return to that location quickly.