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:





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:



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





[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:



When you reach the last Bookmark in the folder:



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




[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:



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.):


Comments (8)

  1. joshua says:

    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!!!

  2. zainnab says:

    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.

  3. Joshua says:

    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?


    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….

  4. Nancy says:

    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.

  5. Ned Patterson says:

    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

  6. zainnab says:


    Sadly I have to agree. I wish it had been more fleshed out to provide additional functionality and ability to be more useful.


  7. Catto says:

    Hey Now Zain;

    This tip is still good after all these years.

    Thx 4 the info;


  8. JimN (Jim Nickerson) says:

    Anyone know how to sort the bookmarks in a document by line number ?

    Visual Studio 2013.

    I have resorted to clicking on the bookmark ( in the Bookmarks Window ) and dragging them to be ordered by line number.

Skip to main content