Skip to main content

Setting and Using Bookmarks

You can use bookmarks to make navigating long programs easier. Bookmarks can be used in all editors of programming languages except SFC (sequential function chart). Commands allow you to navigate directly to the marked locations in the program.

Setting and deleting bookmarks

Requirement: The POU is open in the editor.

  1. Set the cursor at any program line.

  2. Click Edit → Bookmarks → Toggle Bookmark.

    A bookmark is set at this position in the program. This is marked by the _cds_icon_bookmark_new.png bookmark symbol.

  3. Set multiple bookmarks at different places in the program.

  4. Set the cursor at a bookmarked program line.

  5. Click Edit → Bookmarks → Toggle Bookmark.

    The bookmark is removed. The _cds_icon_bookmark_new.pngbookmark symbol is deleted.

    Alternatively, you could also click the _cds_icon_delete_from_list.png button in the Bookmarks view to delete one or more bookmarks. To do this, the corresponding bookmarks have to be selected in the Bookmarks view.

    Tip

    Click Edit → Bookmarks → Clear All Bookmarks (Active Editor) to remove all bookmarks from the active POU.

    Tip

    In order to delete all bookmarks in a project, click Clear All Bookmarks. However, for this command to be available, you first have to add it to a menu by means of the Tools → Customize command.

Jumping to bookmarks within a POU

Requirement: The POU is open in the editor. Multiple bookmarks are set.

  1. Click Edit → Bookmarks → Next Bookmark (Active Editor).

    Depending on the current cursor position, the cursor jumps to the next bookmark (see below).

  2. Click Edit → Bookmarks → Previous Bookmark (Active Editor).

    Depending on the current cursor position, the cursor jumps to the previous bookmark (see above).

Jumping to bookmarks of different POUs in a project

A project is open with multiple POUs. Multiple bookmarks are set in different POUs.

  1. Click View → Bookmarks.

    The Bookmarks view opens.

    All bookmarks in the project are listed in a table in the view.

  2. Click the _cds_icon_cmd_next_bookmark.png Next Bookmark button.

    In the Bookmarks view, the bookmark in the row below the selected bookmark is selected.

    The POU with the recently selected bookmark in the table opens in the editor and the row with the bookmark is selected in the POU.

  3. As in step 2, you can click the _cds_icon_cmd_previous_bookmark.png Previous Bookmark button to jump to the bookmark in the project that is displayed in the row above it in the Bookmarks view.