Thursday, July 28, 2011 7:41 PM
The bookmark feature in Visual Studio 2005 is nice and I am now very used to it. However, it is frustrating that if I copy a solution to another directory, the bookmarks "File Location" still points to its previous value.
Is there a way to update the paths to change to the new directory to which I've copied my solution? Is there an export function for bookmarks? Is there an import function for bookmarks?
- Moved by Esther FanMicrosoft Employee Friday, July 29, 2011 3:49 PM (From:Visual Studio Visualization & Modeling Tools)
Monday, August 01, 2011 10:34 AMModerator
Thanks for your post.
In order to give specific suggestions regarding your question, would you please provide steps to reproduce this issue?
I'm waiting to hear from you about the status this issue.
Andrew Wu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Wednesday, August 10, 2011 1:34 PMModerator
There currently is no supported way to preserve bookmarks across moves. Relative paths could be used so this could theoretically be changed in a future version but currently it won't work. Breakpoints have a similar problem but they added export capability in 2010.
You could write an extension that enumerates the bookmarks in the current solution and saves them to a file using relative paths (or absolute if the path isn't relative to the solution). You could then import the bookmarks after copying the solution. Someone might have written an extension already but I don't know of one. Here's a discussion about it in the forums: http://social.msdn.microsoft.com/Forums/en/vsx/thread/2743de02-7d4b-4cdb-b9d3-cc55f033e83d
Michael Taylor - 8/10/2011
Wednesday, August 10, 2011 9:55 PM
Really? You want the steps?
- In any project, make a bookmark on a line of code.
- Close the solution.
- Copy the solution directory to a new location.
- Open the solution.
- Click on the bookmark.
- What opened for you?
Wednesday, August 17, 2011 5:24 AM
File Locations of bookmarks are stored in the .suo file(Besides the .sln file, defaultly hidden). Unfortunately, that file is a binary file and not easy to hack on.
Here's a little more info about suo file: http://msdn.microsoft.com/en-us/library/bb165909(VS.80).aspx