Bookmark code | Qt Creator Documentation

- Qt Creator Documentation
- Bookmark code
- Qt Creator 18.0.2

Automatically format QML/JS files ◦ Compare files

# Bookmark code

To insert or delete a bookmark in the Edit mode:

- Right-click the line number and select Toggle Bookmark.
- Select Shift and click the left margin at a line.
- Select Ctrl+M when the cursor is on a line.

## Add notes to bookmarks

To add a note to a bookmark:

- Go to Tools > Bookmarks > Edit Bookmark.
- Select Ctrl+Shift+M.
- Right-click a bookmark and go to Edit Bookmark in the context menu.

To view the note, move the mouse pointer over the bookmark or open the Bookmarks view in the sidebar.

## Navigate bookmarks

To move to the previous bookmark in the current session, go to Tools > Bookmarks > Previous Bookmark or select Ctrl+,.

To move to the next bookmark in the current session, go to Tools > Bookmarks > Next Bookmark or select Ctrl+..

### Locate bookmarks

To use the locator to go to a bookmark, select Ctrl+K (or Cmd+K on macOS) to open the locator. Enter b and a space to display a list of bookmarks. To filter the bookmarks by line number or a text string, enter the number or string after the space. Double-click a bookmark in the list to go to it in the editor.

## View bookmarks

The Bookmarks view in the sidebar lists bookmarks. To move between bookmarks, select the Previous Bookmark or Next Bookmark button or use the keyboard shortcuts.

To move bookmarks up and down, select Move Up or Move Down in the context menu or select Ctrl+Alt+, or Ctrl+Alt+..

To list bookmarks alphabetically by the name of the file where you set them, select Sort by Filenames.

See also How To: Edit Code and Edit Mode.

Automatically format QML/JS files ◦ Compare files