visual-studio-code

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'.


Solution

  • 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.