I am trying to generate bookmarks in the Bookmark Window.
At first I tried to create an add-in. As I cannot find a BookmarkWindow object in theDTE2 interface, I tried to use commands such as:
dte2.ExecuteCommand("View.BookmarkWindow");
dte2.ExecuteCommand("Format.InsertBookmark");
dte2.ExecuteCommand("OtherContextMenus.BookmarkWindow.Rename");
As the BookmarkWindow.Rename command does not seem to accept arguments, I tried to use the
SendKeys.SendWait() method to set the bookmark name.This works well enough when my command is called from the Tools menu, however it fails horribly when calling from a keyboard shortcut (which, sadly, is my purpose).
I then converted my add-in into a VSPackage, therefore I have access I believe to more extension functions. However I still do not find how to interact with the Bookmarks Window. Which http://msdn.microsoft.com/en-us/library/vstudio/bb165789(v=vs.110).aspx/interface should I look at?