Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's WebLog


My adventures embracing open source on CodePlex and at Microsoft

News

Did you know... How to change a bookmark color? - #030

I call out the bookmark color, since it appears at the top of the Fonts and Colors Display Items list.  But, this tip applies to all items that appear in the indicator margin, like current statement, breakpoints, etc, but let's focus on bookmarks for this tip...

This picture shows a bookmark icon/glyph in the indicator margin.

changeBookmarkColor1

So, let's go change the color to red!  Go to Tools - Options - Environment - Fonts and Colors.  Under Display Items, select Bookmark.  Now change the background color to something, like red.  You'll notice that nothing changes in the editor.

In order to have a different bookmark color, you need to remove the indicator margin.  Go to Tools - Options - Text Editor - General and uncheck Indicator Margin.  Now you'll see the following:

changeBookmarkColor2

The indicator margin just shows icons (or glyphs to be more accurate) which are not customizable, so this is why you're only able to change the foreground color and why you may not see the change.  I guess a better title for this tip is "why didn't the bookmark color change?"  I hope this helps clarifies any confusion.

Technorati tags: ,
Posted: Wednesday, September 05, 2007 3:00 AM by saraford

Comments

Jason Haley said:

# September 5, 2007 10:27 AM

tatham said:

Hi Sara,

How are you getting the whitespace markers to show up? I've been looking for the setting for this in VS2008 with no luck.

# September 5, 2007 10:03 PM

saraford said:

Yeah, it is a little hidden unfortunately.  Go to Edit menu, then under advanced, click on View White Space.  

Here's the corresponding tip

http://blogs.msdn.com/saraford/archive/2007/07/30/did-you-know-how-to-view-visible-white-space.aspx

# September 6, 2007 1:34 PM

Visual Studio 2008 ワンポイント said:

ここでは、[フォントおよび色] の [表示項目] の一覧の最初にある、ブックマークの色を変更する方法について取り上げます。このヒントは、現在のステートメントやブレークポイントなど、インジケータ マージンに表示されるすべての項目に当てはまりますが、ここではブックマークを例に説明します。

# July 13, 2008 11:38 PM
New Comments to this post are disabled
Page view tracker