Search code examples
xcodecolor-scheme

Edit Xcode color scheme for line number background


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


Solution

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