In various projects there are certain parts I will keep jumping to. Is there a way to effectively "bookmark" these parts, so I can quickly jump back to a certain line in a certain file (or a certain method)?
I keep getting lost navigating the solution or doing a "find in whole project/solution".
To bookmark a line of code, place the cursor on the the line of code you intend to bookmark and use the Toggle Bookmark icon in the bookmark window. Another quick way to bookmark code is to use the keyboard shortcut Ctrl+K, Ctrl+K.
To create a bookmark, you must first position the text cursor on the line that you wish to mark. Next, open the Edit menu, select the Bookmarks sub-menu and click "Toggle Bookmark". You can also press Ctrl-K,K to toggle a bookmark. The bookmark appears as a square-shaped glyph in the margin at the left of the code.
Bookmarks extension: Ctrl+K+S (or Ctrl+Shift+P to open Keyboard Shortcuts) and search for Bookmarks to assign/change hotkeys. Also nice: it adds a new tab to the left side so you can view your bookmarks. They persist between sessions.
In Visual Studio, you can set Bookmarks in the code.
To jump between Bookmarks:
Ctrl + K + N (for next)
and
Ctrl + K + P (for previous)
To toggle a Bookmark on/off for a line:
Ctrl + K + K
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With