Visual Studio (2005,2008,2010) Tips and Tricks.
#30 Bookmarks Usage + Change Visibility and Line Colors in Visual Studio
Wednesday, January 28 2009
Toggling bookmarks are extremely helpful. You have to jump from file A to file B, over to file J, back to B, back to A. (Sound familiar to what you did today :) – Bookmarks are little popcorn nuggets you can leave along your trail to find your way back to where you once were quickly. Bookmarks are controlled from the Edit | Bookmarks menu, or fully from the keyboard. This video introduced you to bookmarks, and then shows you how to change the look/feel and visibility of the bookmarks.
Snippets / Notes:
[CTRL]+B,T = Toogle bookmark on or off
[CTRL]+B,P = Jump to Previous Bookmark
[CTRL]+B,N = Jump to Next Bookmark
[CTRL]+B,C = Clear all Bookmarks
Visual Studio Tip / Trick #030 English Transcription:
Today’s Visual Studio Trick of the day, trick no. 30 was originally posted by Sara Ford in text on September of 2007. Today’s trick actually has 3 parts. The first part is working with Bookmarks. You can see I've got a bookmark here in my indicator margin, so the keyboard shortcut for bookmark is [CTRL]+[B] and then [T] to toggle, which will either turn on or off the bookmark on the line that you are on. Then you can do [CTRL]+[B],[P] for previous, which will move to your previous bookmark or [CTRL]+[B],[N] , which will move to your next bookmark. Now this indicator margin takes up just a little bit of real estate and you can actually turn it off, which is the second trick.
So under Tools | Options | Text Editor | General, you can turn off the indicator margin. And if you say ok, you will see that now the icon glyphs are gone. And the text is now color coded, which can also be changed. Now if you go to Tools | Options under Environment and Fonts and Colors, make sure that your show setting is set for Text Editor, then you can look at the bookmark, which currently has that light blue background, for demo I’ll just change that to yellow and now you can see that your lines have yellow background. [CTRL]+[B],[P] to previous will still [CTRL]+[B],[N] for next will also still work. And then incidentally on the Edit menu, under Bookmarks, there is an entire listing of different things you can do with the bookmarks in addition to the keyboard shortcuts that corresponds with those actions.
3 comment(s)
its nice to have a website that helps us in our career thnkx 4 help us bye
can u send me in my email more trics
sincelrly fitim
Hey Scott,
You forgot to mention the View / Other Windows / Bookmark Window and the features it includes like seeing the file, line number, giving the bookmark a name, organizing them into folders and of course the browse features.
i'll add that to a new video to be created