Is it possible to export/import bookmarks from any Visual Studio?
The bookmarks are stored in the solution's SUO file. So in theory you can import/export them by copying that file around, or placing it in source control.
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.
A better solution to standard bookmarks...
Go to Tools/Options/Environment/Task List
and add a new tag to record them. I wanted to use the phrase MARK but this word is too common in my code, so I'm using BOOKMARK set as low priority.
Whenever I want to leave a bookmark I just type //BOOKMARK: this is a bookmark
, and that's it, simple! To view them just open the Task List
window and sort by priority or description and scroll down.
This is hugely better than standard bookmarks because they ...
The bookmarks are stored in the solution's SUO file. So in theory you can import/export them by copying that file around, or placing it in source control. In practice, that would be a bad idea because that file is meant to be developer-specific and overwriting it will cause collateral damage in addition to importing the bookmarks.
However, if you have a specific scenario in mind where that is not a problem you can try doing it.
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