Setting Bookmarks

Tips Search

If you like the tips then you'll love the book!

Order your copy today:
http://www.amazon.com/gp/product/0735649928

Setting Bookmarks

  • Comments 10

Keyboard:  CTRL + K, CTRL + K (toggle bookmark)
Menu:  Edit -> Bookmarks -> Toggle Bookmark
Command:  Edit.ToggleBookmark
Versions:  2008,2010
Published:  7/5/2010
Code:  vstipTool0047

 

Bookmarks are a pretty cool feature that a lot of people don't seem to know about.  Essentially, Bookmarks are a way to mark locations in your code.  Unlike tokens ("TODO's"), Bookmarks are not stored with the source code.  There are numerous ways to set a Bookmark.  The simplest way is to use CTRL + K, CTRL + K to create a single Bookmark:

image

 

When you set a Bookmark it will create a glyph in the Margin and create an entry in the Bookmarks Window:

image

 

The good news is you don't have to keep the default name that is given for the Bookmark.  Just RIGHT CLICK the entry in the window and choose "Rename":

image

 

Then put in whatever you want for the name and you are good to go:

image

 

You can continue to use this method or the menu to create Bookmarks.  Another cool way to create Bookmarks is to use the "Bookmark All" (bottom right) button in the Quick Find dialog (CTRL + F):

image

  • "Bookmarks are pretty cool", ....well they are ok.

    If you work in a team, they don't always work perfectly....

    For example, if a team member has their Project folder on the C drive and another team member has their Project folder on a D drive, then bookmarks will have issues. Bookmark not found.

    Look at your Image at "When you set a Bookmark it will create a glyph in the Margin and create an entry in the Bookmarks Window"  your location is C:\WindowsAzure

    Now.. what if you want to work on another system say at home, or clients etc...

    Anyone have a suggestion or workaround ?

    BTW I still use them.

    Have a great day :)

  • Since Bookmarks aren't stored with the source the general consensus is to not use them for team activites but rather use comment tokens ("TODO"'s) instead.  

    Z

  • In my Visual Studio 2008, I have bookmark options on the text editor, but no bookmarks menu available.

  • Are you saying that you don't see the Bookmarks submenu off the Edit Menu?

  • i m nt able to  set bookmarks using edit-> bookmarks.......

    giv me another option plz..nt even ctrl+k is working in ma visual studion 2008

  • I am using Visual Studio 2010 Express, I am not able to bookmark through menu or no option is available in Toolbar.. though Ctrl+K,Ctrl+K is working, am not able to move from one bookmark to another..  Please give the key shortcut for that..

  • Ctrl+K,N  and Ctrl+K,P  are shortcuts for moving to next and previous bookmarks.. Thanks..

  • ....am not able to bookmark through menu or no option is available in Toolbar....

    you need to change

    tools  >settings > basic settings X

    to

    tools > settings > expert settings X

    then you will be able to see the bookmarks menus and toolbar

  • Another cool tip would be suggestions on how to replace the glyph used for bookmarks with something that stands out a little more.  Is there an image file that can be replaced?

  • Hey Les :)

    Sadly no.  There currently is no way I am aware of to replace the glyph for bookmarks.

    Z

Page 1 of 1 (10 items)
Leave a Comment
  • Please add 2 and 3 and type the answer here:
  • Post