Wednesday, March 28, 2012

Persisting Bookmarks

Is it possible to persist bookmarks? aka what is the intended lifetime/scope of workbench bookmarks?

This question stems from a chapter I am writing on sql tools. I have used the bookmark feature in the past and upon testing it I see that you can assign bookmarks to any editor and then save/close the file. Later on (so long as you have the same bookmark window open with the bookmarks set) you can reopen the file and the bookmark appears.

What I am trying to explain is how do your persist a bookmark beyond the setting in the bookmarks window? I want to store a bookmark with a sql/mdx etc file and not have to rely on it being set in the IDE. I want the bookmarks window to autopopulate upon opening of the corressponding file.

Thanks,

Derek

Copying from: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=380970&SiteID=1

Bookmarks in Management Studio are consist with Visual Studio. To use bookmarks your files need to be part of a solution/project, rather than just loose files. Yes, the environment allows the creation of bookmarks on files that are not part of a solution but these bookmarks are not persisted. When you create a solution, add a file, create some bookmarks, the bookmarks will be persisted and show up each time the solution is opened.

No comments:

Post a Comment