问题描述
默认情况下,当插入符号位于该行时,sublime text 2 中的行号/装订线区域会突出显示.我怎样才能关闭它?
By default the line number / gutter area in sublime text 2 is highlighted when the caret is on that line. How can I turn it off?
我看到了隐藏装订线的选项,但我希望行号可见.谢谢.
I see options to hide the gutter but I want the line numbers to be visible. Thanks.
推荐答案
要关闭行突出显示,请通过菜单转到 preferences>settings - User
并添加以下行:
To turn off line highlighting go to preferences>settings - User
through the menus and add this line:
"highlight_line": false,
然后保存.我在 linux 中使用默认的 Monokai
主题,这将改变它:
then save. I am using the default Monokai
theme in linux, this will change it from:
到:
如您所见,该行不再突出显示(它没有显示在图片中,但我的光标仍在该行上),但装订线编号是.我想你也想摆脱它?因此,打开主题文件 .../sublime-text-2/Packages/Color Scheme - Default/Monokai.tmTheme
,并更改 颜色,所以它与
颜色相同,即.
#3E3D32
转到 #272822
,像这样:
As you can see the line is no longer highlighted (it doesn't show in the picture but my cursor is still on the line), but the gutter numbers are. I think you also want to get rid of that? So, open the theme file .../sublime-text-2/Packages/Color Scheme - Default/Monokai.tmTheme
, and change the <key>lineHighlight</key>
colour, so it is the same as the <key>background</key>
color, ie. #3E3D32
goes to #272822
, like this:
保存后,它应该可以解决您的问题:
On saving, it should resolve your problem:
只有第二步才是真正必要的.
Only the 2nd step is really neccessary.
这篇关于Sublime Text 2 高亮装订线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!