Is it possible to export/import bookmarks from any Visual Studio?
标签:
visual-studio
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
- VS2017 RC - The following error occurred when tryi
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- Copy different file to output directory for releas
- Edit & Continue doesn't work
- “Csc.exe” exited with code -1073741819
- Visual Studio: Is there an incremental search for
It is not possible using any of the tools I have found.
However there is an alternative and you can import and export breakpoints.
A problem with this is that if the source code ends up differing from when the breakpoints were added.
The breakpoints will faithfully stay at the lines which were marked and may not be indicative of an interesting place.
A way to mitigate this would be to save the breakpoints and check them in with a changeset into your source control, that way they would at least be faithful against a specific cut of the code.
An alternative, if you have Visual Studio Ultimate, is to use the code map feature. And build up pertinent parts of the code path(s) you are interested in.
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.
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 theTask List
window and sort by priority or description and scroll down.This is hugely better than standard bookmarks because they ...