VSCode 设置光标所在行高亮显示 settings.json |
您所在的位置:网站首页 › vscode鼠标样式 › VSCode 设置光标所在行高亮显示 settings.json |
文章目录
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较为显眼。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |