VSCode 设置光标所在行高亮显示 settings.json 您所在的位置:网站首页 qq音乐最近播放排行榜热歌榜怎么删除 VSCode 设置光标所在行高亮显示 settings.json

VSCode 设置光标所在行高亮显示 settings.json

#VSCode 设置光标所在行高亮显示 settings.json| 来源: 网络整理| 查看: 265

文章目录 Intro 设置

Intro

在使用VSCode查看SQL脚本,和Excel中的数据做行之间的对比。 当大量文本模式相同时,眼睛不太能盯得住。 Excel中有行选中(鼠标单击左侧行序号)。 那么VSCode中是否支持设置光标所在行高亮显示呢(最好能自定义显示样式)?

有!

设置

Ctrl+Shift+P呼出命令栏,搜索settings.json进入。

在这里插入图片描述注意选择Preferences: Open Settings (JSON)

新增配置项:

// Controls how the editor should render the current line highlight. // - none // - gutter // - line // - all: Highlights both the gutter and the current line. "editor.renderLineHighlight": "line", // Controls if the editor should render the current line highlight only when the editor is focused. "editor.renderLineHighlightOnlyWhenFocus": false, // Overrides colors from the currently selected color theme. "workbench.colorCustomizations": { "editor.lineHighlightBackground": "#49b2b93d", "editor.lineHighlightBorder": "red" // "#ffffff30" },

保存后效果如图:

在这里插入图片描述具体样式的颜色值可以自定义。 在我的场景下,红色边框editor.lineHighlightBorder较为显眼。

版权声明 本文为[锦天]所创,转载请带上原文链接,感谢 https://wuyujin.blog.csdn.net/article/details/122017027



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有