Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove the border around the current line in VS Code?

How do I remove the horizontal line bounds on the selected line in VS Code? Illustration below:

enter image description here

I've searched through Google, and VS Code's editor settings though cannot find the toggle. The Color Theme used in 'Dark High Contract'.

like image 708
Gus Montano Avatar asked Dec 28 '25 22:12

Gus Montano


1 Answers

This is probably a result of using a high contrast theme. You can make the line highlight border transparent or whatever colour you wish by putting the following in your settings.json file:

"workbench.colorCustomizations": {
    "editor.lineHighlightBorder": "#0000" // #RGBA. can also #RRGGBBAA, #RGB, #RRGGBB
}

Or you could just nuke line highlighting altogether by putting "editor.renderLineHighlight": "none", in settings.json.

like image 110
starball Avatar answered Jan 01 '26 15:01

starball