~/.coder, never in the repo, so they don’t show up in git and aren’t shared with teammates.
Add a bookmark
- Press Cmd+F2 with the cursor on a line. Pressing it again on a bookmarked line removes the bookmark.
- Or right-click a line and choose Toggle Bookmark.
- To add a note at the same time, right-click and choose Bookmark with Note…. The Bookmarks panel opens with the note field ready to type in.
Clicking the gutter on a line without a bookmark sets a breakpoint, as usual. Breakpoints and bookmarks use separate gutter lanes, so a line can have both.
The Bookmarks panel
Open it with Cmd+Shift+9, or from the activity bar.- Each row shows the note as its title (or the text of the line if there’s no note), with
file:lineunderneath. Click a row to open the file at that line. - Use the filter box to search notes, line text, and paths.
- Edit a note: double-click a row, press F2 on it, or click the pencil. Enter saves, Esc cancels. Clear the text to remove the note.
- Remove a bookmark with the trash icon in the row’s top-right corner. Both buttons appear when you hover the row.
Bookmarks follow your edits
When you insert or delete lines above a bookmark, it moves with its code and keeps pointing at the same line. The new position is saved when you stop typing, and again when the file closes, so it stays correct across restarts. Edits made outside Coder (agit pull, another editor) can’t be tracked. After a big external change a bookmark may point at the wrong line.
Shortcuts
Both can be rebound in Settings.