How to I remove whole line highlighting in VScode?

拥有回忆 提交于 2021-01-28 07:13:48

问题


I want VSCode line highlight to look like this Text

Currently, it looks like this Text

Basically I dont want VSCode to highlight the entire line.


回答1:


add this to your settings.json (global or project)

  "workbench.colorCustomizations": {
    "editor.lineHighlightBackground": "#00000000"
  },

Set the line highlight to a transparent color




回答2:


Look at the options for this setting:

Editor: Render Line Highlight

options are none, gutter, line and all

You cannot just highlight the text part of the line. If that is what you want, look at the gutter option perhaps. If you just want to reduce the obviousness of the highlight, use @rioV8's answer - the last two digits in the hex are opacity.



来源:https://stackoverflow.com/questions/64756591/how-to-i-remove-whole-line-highlighting-in-vscode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!