views:

172

answers:

2

Hi All,

VS2008 automatically saves bookmarks and restores them when I reopen the document. How can I tell it to stop saving them. When I open a doc, I want it without any bookmark, as in previous versions of VS.

I went twice through the whole options set but couldn't find anything related to bookmarks.

TIA.

+1  A: 

You should be able to write a macro that handles the DocumentEvents or WindowEvents event interfaces.

In response to (e.g.) DocumentEvents_OnDocumentOpened, which gets a Document object, you should be able to remove all of the bookmarks.

Or, if bookmarks are relative to a window, you might need to handle WindowEvents_OnWindowCreated.

The documentation claims that these are for Microsoft internal use only, but it says the same for BuildEvents, and I've been using those successfully since VS2003.

Roger Lipscombe
A: 

The CTRL+B CTRL+C key combo clears all the bookmarks. You could use that before saving although it wipes out all the bookmarks in all files and displays a confirm dialog.

Glenn Lang