Is there a way to change VS 2005 bookmark navigation to restrict it to the current document?

This came up on one of the internal mailing lists.

Is there a way to restrict Ctrl+K, Ctrl+P (Previous bookmakr) and Ctrl+K, Ctrl+N (Next bookmark) to the current file in VS2005?

Dave Bartolomeo came up with this answer:

In the keyboard settings under Tools|Options, bind Ctrl+K, Ctrl+P to Edit.PreviousBookmarkInDocument, and Ctrl+K, Ctrl+N to Edit.NextBookmarkInDocument, instead of the defaults of Edit.PreviousBookmark and Edit.NextBookmark.

I'm really just archiving this knowledge here, so that I can find it when I delete that email.

Comments

  • Anonymous
    November 16, 2006
    cool, very very useful.