Skip to main content
A newer version of this page is available. .

Markers and Bookmarks

  • 3 minutes to read

CodeRush allows you to navigate to the important places in your code using Markers and Bookmarks. Bookmarks persistently mark essential parts of your code so that you can return to them at any time. Markers are used to save the current position before navigating away, and allows you to move the caret back to the saved position.

Bookmarks

To drop or remove a bookmark, use the Ctrl + Left Alt + 1, Ctrl + Left Alt + 2, ... , Ctrl + Left Alt + 6 shortcuts. Bookmarks persist after closing the solution.

You can use the Left Alt + 1, Left Alt + 2, ... , Left Alt + 6 shortcuts to navigate to a corresponding bookmark.

Bookmarks

NOTE
  • The number of bookmarks in a solution is unlimited. You can use the Ctrl + Num+ to drop a sequential bookmark and Ctrl + Num- to remove the bookmark with the highest number.
  • Locator Beacons can be turned on or off on the Editor | All Languages | Markers options page.

Markers

NOTE

To enable this feature, use the Editor | All Languages | Markers options page.

A marker is a temporary bookmark that can be dropped automatically when a template is expanded, refactoring is executed, and optionally, before navigating away. You can also drop a marker manually using the Left Alt + Home shortcut. There are three ways to navigate to the last marker:

  • Collect the marker — move the cursor to a marker and remove it. Use the Alt + End shortcut for this. If several markers are dropped, they are collected sequentially starting with the most recent.
  • Collect and Paste — collect the marker and paste clipboard contents in its place. Use the Shift + Esc shortcut.
  • Swap the marker — drop the marker at the current location and collect another marker. Use the Alt + Shift + Home shortcut.
TIP

You can also use the Esc key to collect markers if you enabled it in Setup Wizard. If not, open the CodeRush | Shortcuts window, find the MarkerCollect command in Navigation | Markers directory and enable the Esc shortcut bound to it.

Show animation

Markers

NOTE

You can clear all unwanted markers simultaneously using the CodeRush | Navigate | Clear All Markers menu item.

Selection Markers

NOTE

To enable this feature, use the Editor | All Languages | Markers options page.

Selection Markers are similar to a Marker with the only difference being that a — Selection Marker is placed on a selection so that you can restore it.

Show animation

Nav_SelMarker_GIF