Condividi tramite


Navigating Bookmarks

Keyboard:  CTRL + K, CTRL + N (next bookmark); CTRL + K, CTRL + P (previous bookmark); CTRL + SHIFT + K, CTRL + SHIFT + N (next bookmark in folder); CTRL + SHIFT + K, CTRL + SHIFT + P (previous bookmark in folder);
Menu:  Edit -> Bookmarks -> [Previous, Next] Bookmark [In Folder, Document]
Command:  Edit.[Previous, Next] Bookmark [In Folder, Document]
Versions:  2008,2010
Published:  7/7/2010
Code:  vstipTool0049

 

Once you have created and organized your Bookmarks you will, naturally, want to navigate them.  Going to Edit -> Bookmarks you will get several options:

image

 

 

 

Let's take a look at each of these in turn:

 

[Next,Previous] Bookmark in Document -- allows you to restrict browsing to only those Bookmarks in the current open document independent of how they are organized in the Bookmarks Window.

 

So, even though I have tons of Bookmarks in different folders within the Bookmarks Window:

image

 

This option will only move between the Bookmarks in the current document ignoring any Bookmarks Window organization:

image

 

 

 

[Next,Previous] Bookmark in Folder -- allows you to restrict browsing to only those Bookmarks in the current folder in the Bookmarks Window independent of how they are arranged in the source code.

 

Pretty much the opposite of the previous feature, this feature ignores how the Bookmarks are organized in the source code and only moves within the Bookmarks in the current folder within the Bookmarks Window:

image

 

When you reach the last Bookmark in the folder:

image

 

It will loop back around to the first Bookmark in the current folder:

image

 

 

[Next,Previous] Bookmark - navigates between Bookmarks in the Bookmarks Window.  This feature is very similar to [Previous, Next] Bookmark In Folder and moves sequentially through Bookmarks:

image

 

The difference comes when you reach the last Bookmark in a folder.  Instead of looping back around to the first Bookmark in the folder this option will continue to the next folder and move sequentially through those Bookmarks as well (and so on.):

image

Comments

  • Anonymous
    September 15, 2010
    Good but when I close Visual Studio 2010 the bookmarks page number position is not saved and so when I reopen it they have the previous number position!!!

  • Anonymous
    September 15, 2010
    So...Joshua.  I think what you are saying is that it doesn't remember where you were last when you close and open Visual Studio?  I would expect that behavior but the beauty of bookmarks is, using naming and folders, you can quickly organize and find your way to just about anywhere.

  • Anonymous
    September 15, 2010
    Yes, when I open again Visual Studio it doesn't remember last bookmarks page numbers. So, really, if this is not a bug, the bookmarks are not so useful... also your VS version do that? P.S. I noticed that only one time when I reopened VS it has remembered the page numbers....so I think it is a bug. I try to post it to Visual Studio bug system....

  • Anonymous
    September 14, 2011
    I'm using VS2010. I spent ages setting up bookmarks but I lost them when I reopened Visual Studio. I agree with Joshua that this functionality is useful and frankly a big waste of my time if it cannot be saved.

  • Anonymous
    January 20, 2014
    Bookmarks do not adjust position when lines of code are added or deleted and so become detached from original positions and very quickly useless in an active solution

  • Anonymous
    January 20, 2014
    The comment has been removed

  • Anonymous
    October 06, 2014
    Hey Now Zain; This tip is still good after all these years. Thx 4 the info; Catto

  • Anonymous
    September 23, 2015
    The comment has been removed