• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Sublime Text 2 高亮装订线

用户头像
it1352
帮助1

问题说明

默认情况下,当插入符号位于该行时,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.

正确答案

#1

要关闭行突出显示,请通过菜单转到 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,并更改 lineHighlight 颜色,所以它与 background 颜色相同,即.#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.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcbieih
系列文章
更多 icon
同类精品
更多 icon
继续加载