|
2 | 2 | title: Set bookmarks in Visual Studio
|
3 | 3 | description: Learn how to use bookmarks to mark lines in your code so that you can quickly return to a specific location, or jump back and forth between locations.
|
4 | 4 | titleSuffix: ''
|
5 |
| -ms.date: 04/26/2023 |
| 5 | +ms.date: 09/09/2024 |
6 | 6 | ms.topic: how-to
|
7 | 7 | f1_keywords:
|
8 | 8 | - VS.BookmarkWindow
|
9 | 9 | author: anandmeg
|
10 | 10 | ms.author: meghaanand
|
11 | 11 | manager: mijacobs
|
12 | 12 | ms.subservice: general-ide
|
13 |
| -ms.custom: engagement-fy23 |
14 | 13 | ---
|
15 | 14 | # Bookmark code in Visual Studio
|
16 | 15 |
|
17 | 16 | You can use bookmarks to mark lines in your code so that you can quickly return to a specific location, or jump back and forth between locations. Bookmarks can help you keep track of important parts of your code and remind you of what you might want to work on next, which can improve your productivity.
|
18 | 17 |
|
19 | 18 | Bookmark commands and icons are available in two places:
|
20 | 19 |
|
21 |
| -- The **Bookmarks** window; to open it, select **View** > **Bookmark Window** from the menu bar, or use the **Ctrl**+**K**, **Ctrl**+**W** keyboard shortcut. |
| 20 | +- The **Text Editor** toolbar, which is the row of buttons under the menu bar in Visual Studio. |
| 21 | + |
| 22 | + ::: moniker range="<=vs-2019" |
22 | 23 |
|
23 |
| -  |
| 24 | + :::image type="content" source="media/vs-2019/tutorial-editor-toolbar-bookmarks.png" alt-text="Screenshot of Bookmark commands and icons in the Text Editor toolbar in Visual Studio 2022."::: |
24 | 25 |
|
25 |
| -- The **Bookmarks** toolbar |
| 26 | + ::: moniker-end |
26 | 27 |
|
27 |
| -  |
| 28 | + ::: moniker range=">=vs-2022" |
| 29 | + |
| 30 | + :::image type="content" source="media/vs-2022/tutorial-editor-toolbar-bookmarks.png" alt-text="Screenshot of Bookmark commands and icons in the Text Editor toolbar in Visual Studio 2022."::: |
| 31 | + |
| 32 | + ::: moniker-end |
| 33 | + |
| 34 | +- The **Bookmarks** toolbar in the **Bookmarks** window; to open it, select **View** > **Bookmark Window** from the menu bar, or use the **Ctrl**+**K**, **Ctrl**+**W** keyboard shortcut. The **Bookmarks** window |
| 35 | + |
| 36 | + :::image type="content" source="media/bookmarks-window.png" alt-text="Screenshot that shows the Bookmarks window and the Bookmarks toolbar."::: |
28 | 37 |
|
29 | 38 | The following table includes available toolbar commands and their [keyboard shortcuts](default-keyboard-shortcuts-in-visual-studio.md), listed from left to right.
|
30 | 39 |
|
|
0 commit comments