ReSharper 2022.2 Help

Bookmarks

If you want to return to some place in your code later, you can mark any code line in your solution or in library code with a bookmark.

There are two kinds of bookmarks that you can use:

  • Bookmarks with mnemonics — are most useful for marking code lines that you often refer to, like top 10 places in your current solution. You can have up to 10 numbered bookmarks simultaneously. They are indicated by the following icons on the left editor gutter: Themed icon bookmark3 screen gray

    Use dedicated shortcuts for this kind of bookmarks: Ctrl+Shift+[digit] toggles the bookmark with this digit; Ctrl+[digit] navigates to the bookmark with this digit.

  • Anonymous bookmarks— are allowed in unlimited numbers so you can mark any line, which you think is worth returning to at some time in the future. They are indicated by the following icon on the left editor gutter: Themed icon anonymous bookmark screen gray

    You can toggle bookmarks of this kind and navigate them from the bookmarks popup.

Add a bookmark with mnemonic

  1. Place the caret at the code line you want to mark.

  2. Do one of the following:

    • Press Ctrl+Shift+.

    • Toggle the bookmark using a popup:

      Press Control+Oemtilde or choose ReSharper | Navigate | Bookmarks | Bookmarks… from the main menu . The Bookmarks popup will appear where you see which digits are free and which are occupied:

      ReSharper: Navigation with bookmarks

      Select the desired digit in the list and press Insert.

  3. If the digit that you chose is occupied by another bookmark, this existing bookmark will be removed and replaced by the new one.

Add an anonymous bookmark

  1. Place the caret at the code line you want to mark.

  2. Press Control+Oemtilde or choose ReSharper | Navigate | Bookmarks | Bookmarks… from the main menu . Alternatively, you can press Control+Shift+A, start typing the command name in the popup, and then choose it there.

  3. In this popup, either click New anonymous bookmark, or select this item and press Insert or Enter.

  • To navigate to a numbered bookmark, press Ctrl+

  • To navigate to any of the existing bookmarks, use the Bookmarks popup.

    Press Control+Oemtilde or choose ReSharper | Navigate | Bookmarks | Bookmarks… from the main menu .

    Click a bookmark or select this bookmark and press Enter to open the marked code in the editor.

Remove bookmarks

  • To remove all bookmarks in the currently opened document, choose ReSharper | Navigate | Bookmarks | Clear All Bookmarks in Document in the main menu.

  • To remove all bookmarks in the solution, choose ReSharper | Navigate | Bookmarks | Clear All Bookmarks in the main menu.

  • To remove a bookmark with mnemonic, press the corresponding Ctrl+Shift+[digi] shortcut when the caret is at the line marked with this bookmark.

  • Press Control+Oemtilde or choose ReSharper | Navigate | Bookmarks | Bookmarks… from the main menu . In the bookmarks popup, choose a bookmark that you want to remove and press Delete.

This feature is supported in the following languages and technologies:

Language: C#

Language: VB.NET

Language: C++

Language: HTML

Language: ASP.NET

Language: Razor

Language: JavaScript

Language: TypeScript

Language: CSS

Language: XML

Language: XAML

Language: Resx

Language: Build Scripts

Language: Protobuf

Language: JSON

Feature is available in C#

Feature is available in Visual Basic

Feature is available in C++

Feature is available in HTML

Feature is available in ASP.NET

Feature is available in Razor

Feature is available in JavaScript

Feature is available in TypeScript

Feature is available in CSS

Feature is available in XML

Feature is available in XAML

Feature is available in Resource files

Feature is available in build script files

Feature is available in Protobuf

Feature is available in JSON

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by language section.

Last modified: 10 December 2021