To edit a document elsewhere and then return to your current location, add a bookmark. The Bookmarks window maintains a list of the bookmarks set in source files — see Bookmarks window.

To place a bookmark:
  1. Move the insertion point to the line you wish to bookmark.
  2. Choose Edit > Bookmarks > Toggle Bookmark or press Ctrl+F2.

A bookmark symbol appears next to the line in the indicator margin to show the bookmark is set.

To place a bookmark using the mouse:
  1. Right-click the margin gutter where the bookmark should be set.
  2. Choose Toggle Bookmark.

The default color to use for new bookmarks is configured in the Bookmarks window. You can choose a specific color for the bookmark as follows:

  1. Press and hold the Alt key.
  2. Click the margin gutter where the bookmark should be set.
  3. From the palette, click the bookmark color to use for the bookmark.
To navigate forward through bookmarks:
  1. Choose Edit > Bookmarks > Next Bookmark In Document or press F2.
  2. The editor moves the insertion point to the next bookmark in the document.

If there is no following bookmark, the insertion point moves to the first bookmark in the document.

To navigate backward through bookmarks:
  1. Choose Edit > Bookmarks > Previous Bookmark In Document or press Shift+F2.
  2. The editor moves the insertion point to the previous bookmark in the document.

If there is no previous bookmark, the insertion point moves to the last bookmark in the document.

To remove a bookmark:
  1. Move the insertion point to the line containing the bookmark.
  2. Choose Edit > Bookmarks > Toggle Bookmark or press Ctrl+F2.

The bookmark symbol disappears, indicating the bookmark is no longer set.

To remove all bookmarks in a document:

Quick reference for bookmark operations

Keystroke Menu Description
Ctrl+F2 Edit > Bookmarks > Toggle Bookmark Toggle a bookmark at the insertion point.
Ctrl+K, 0 Clear the bookmark at the insertion point.
F2 Edit > Bookmarks > Next Bookmark In Document Move the insertion point to next bookmark in the document.
Shift+F2 Edit > Bookmarks > Previous Bookmark In Document Move the insertion point to previous bookmark in the document.
Ctrl+Q, F2 Edit > Bookmarks > First Bookmark In Document Move the insertion point to the first bookmark in the document.
Ctrl+Q, Shift+F2 Edit > Bookmarks > Last Bookmark In Document Move the insertion point to the last bookmark in the document.
Ctrl+K, F2 Edit > Bookmarks > Clear Bookmarks In Document Clear all bookmarks in the document.
Alt+F2 Edit > Bookmarks > Next Bookmark Move the insertion point to the next bookmark in the Bookmarks list.
Alt+Shift+F2 Edit > Bookmarks > Previous Bookmark Move the insertion point to the previous bookmark in the Bookmarks list.
Ctrl+Q, Alt+F2 Edit > Bookmarks > First Bookmark Move the insertion point to the first bookmark in the Bookmarks list.
Ctrl+Q, Alt+Shift+F2 Edit > Bookmarks > Last Bookmark Move the insertion point to the last bookmark in the Bookmarks list.
Ctrl+K, Alt+F2 Edit > Bookmarks > Clear All Bookmarks Clear all bookmarks in all documents.