Bookmarks

Bookmarks provide a way for you to easily navigate between scattered sections of your code. You can manipulate bookmarks using the Bookmarks submenu of the Edit menu, using buttons on the CodeSmith Studio, or using keyboard shortcuts.

Edit > Bookmarks > Toggle Bookmark or Ctrl+Shift+K

The Toggle Bookmark command inserts a visible bookmark to the left of the current line:

If the current line already has a bookmark, the Toggle Bookmark command removes the bookmark.

Bookmarks are not saved with CodeSmith templates. When you close a template, all bookmarks are automatically cleared.

Edit > Bookmarks > Next Bookmark or Ctrl+Shift+N

The Next Bookmark command moves the cursor to the start of the next line in the current file that is marked with a bookmark. The search "loops around" to the top of the file if it reaches the bottom of the file.

Edit > Bookmarks > Previous Bookmark or Ctrl+Shift+P

The Previous Bookmark command moves the cursor to the start of the previous line in the current file that is marked with a bookmark. The search "loops around" to the bottom of the file if it reaches the top of the file.

Edit > Bookmarks > Clear Bookmarks or Ctrl+Shift+K

The Clear Bookmarks command removes all bookmarks from the current file.

This feature is only available in the Professional Edition of CodeSmith.