PyCharm中修改行号前景色、背景色

使用PyCharm的时候,会发现暗色调主题(theme)使用某些高亮策略(scheme)时,行号的背景会是白色很刺眼,前景色也很不协调。

搜索了半天也没找到答案,自己试了下,发现,PyCharm中更改方法如下:

行号前景色(Line number foreground color):

Settings > Editor > Colors&Fonts > General > Line number

行号背景色(Line number background color):

Settings > Editor > Colors&Fonts > General > Gutter background

提示:老蔡使用的PyCharm版本是2.7,不同版本细节可能有所不同,但是会大致一样。