Edit Xcode color scheme for line number background

1.3k views Asked by At

Anyone knows how to change the line number background color in Xcode, referring to the area in the red box below? Access the setting by:

Xcode -> Preferences... -> Fonts & Colors

I read through the .dvtcolortheme file but haven't found any hint.

enter image description here

3

There are 3 answers

3
Doug Smith On BEST ANSWER

Unfortunately it seems that the line number/gutter area is given its background colour automatically based on what the background of the editor is. This can be seen by changing the editor's background colour to white or black, and it chooses both a darker colour for white, and a lighter colour for black.

0
Діма Комар On

It could be fixed with Xcode restart

1
Beau Nouvelle On

You can edit the background of the line colors by going opening the color scheme in a text editor and changing the values for the property DVTMarkupTextInlineCodeColor

enter image description here

These are decimal RGB color values so in this example I have set the background to white with an opacity level of 0.7