Bookmarks in a script

Bookmarks help you identify and jump to specific places within your script.

Bookmarks are displayed in the editor’s gutter, so you will not be able to see them unless the gutter is both visible and sufficiently wide. If line numbers are also displayed in the gutter, bookmarks may be harder to see. To control line number and gutter display, see Editor Options.

Note: Bookmarks are not preserved when you close the editor.

Toggling bookmarks

To toggle bookmarks:

  • Place the cursor on a line in your script and, from the editor’s pop-up menu, choose Toggle Bookmark and a given bookmark number.

If the bookmark you selected was not displayed on any line, it is added to the line where you placed the cursor. If the bookmark you selected was displayed on the line where you placed the cursor, it is removed. If the bookmark you selected was displayed on a different line, it is moved to the line where you placed the cursor.

Jumping to a bookmark

Before you can jump to bookmarks, you must add bookmarks to specific lines in your script (see above).

To jump to a bookmark:

  • From the editor’s pop-up menu, choose Go To Bookmark and a given bookmark number.

If the bookmark you selected was displayed on a line, the cursor jumps to that line.