Set and use bookmarks

You can use bookmarks to facilitate navigation in long programs. Bookmarks can be used in all programming language editors, except SFC (Sequential Function Chart). Commands can be used to navigate directly to the selected program locations.

Set and use bookmarks 1:

By default, the bookmarks are stored in the user options file of the Visual Studio project (.suo). This file is user-specific and therefore not compatible with a source control management system. Accordingly, the bookmarks are only valid for the local project.

In order to save the bookmarks across users, there is the option of additionally saving them in a separate file (Write Bookmarks to File), which is then part of the TwinCAT archive options. This file is also not compatible with a source control management system.

Set/clear bookmarks

A programming block is open in the editor.
1. Place the cursor in any program line.
2. From the menu PLC > PLC Bookmark, select the command Enable/disable bookmarks.
A bookmark is set at this point in the program. This is indicated by the bookmark icon Set and use bookmarks 2:.
3. Set several bookmarks at different points in the program.
4. To delete a bookmark, place the cursor in a program line with a bookmark.
5. From the menu PLC > PLC Bookmark, select the command Enable/disable bookmarks.
The bookmark is removed again. The bookmark icon Set and use bookmarks 3: is deleted.
Alternatively, you can delete one or more bookmarks in the PLC Bookmarks window using the button Set and use bookmarks 4: For this, the corresponding bookmarks must be selected.
Set and use bookmarks 5:

Select in the menu PLC > PLC Bookmark the command Delete all bookmarks (active editor) to remove all bookmarks of the active programming block.

Select in the menu PLC > PLC Bookmarks the command Delete all bookmarks to delete all bookmarks of a project.

See also:

Jump to bookmarks within a programming block

A programming block is open in the editor. Several bookmarks are set.
1. From the menu PLC > PLC Bookmark, select the command Next Bookmark (active editor).
Depending on the current cursor position, the cursor jumps down to the next bookmark.
2. From the menu PLC > PLC Bookmark, select the command Previous Bookmark (active editor).
Depending on the current cursor position, the cursor jumps up to the next bookmark.

See also:

Jumping to bookmarks of different programming blocks of a project

A project with several programming blocks is open. Several bookmarks are set in different programming blocks.
1. From the menu PLC > Window select the command PLC Bookmarks
The Bookmarks view opens.
All bookmarks of the project are listed in the view in tabular form.
2. Click the Next Bookmark Set and use bookmarks 6:button.
In the Bookmark view the bookmark in the row below the currently selected bookmark is selected.
The programming block with the newly selected bookmark of the table opens in the editor and the row with the bookmark is selected.
3. According to step 2 you can use the button Previous Bookmark Set and use bookmarks 7: to jump to the bookmark of the project that is displayed in the Bookmark view in the row above.

See also: