Navigating Text

Microsoft Script Editor

Show All Show All

Navigating Text

There are several ways to move throughout text:

  • Mouse and navigation keys
  • Bookmarks
  • 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

  1. Click the line you want to return to at later time.
  2. Click Toggle Bookmark Button image. You should see the temporary (or "unnamed") bookmark symbol bookmark symbol appear next to the line.
  3. Alternatively, you can press CTRL+K twice to toggle the bookmark.

To return to a temporary bookmark

  • Click Next Bookmark Button image or Previous Bookmark Button image . 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.

    Tip

To remove one or more temporary bookmarks in a document

  • Click Clear Bookmarks Button image.

    or

  • 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.

Incremental Search

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

  1. 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.

  2. Type your search string to move to another location.
  3. 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.

  4. Click Navigate Backward to return to where you were working before you used incremental search.

Use the following key combinations when you search incrementally.

To Use
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

  1. Click Optionson the Tools menu and navigate from the Text Editor tab to the General page of the All Languages folder.
  2. Click Line numbers.
  3. Click Go To on the Edit menu.
  4. 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.