skip to Main Content

I changed settings.json, so that the current line is easier to see (dark green background):

highlight-one-line-in-vscode

But this highlighting disappears as soon as there is a selection.

For example I select the word "editor", and now the dark green background is gone:

highlight-in-vscode-gone

How to highlight the current line (dark green background), even if there is a selection?

2

Answers


  1. I can also reproduce this behavior, I agree with the comment answer. But FWIW, this highlight line extension may do what you are looking for!

    enter image description here

    Login or Signup to reply.
  2. Changing the setting

    Editor: Render Line Highlight => all
    

    to all will help you "some". The line highlight in the gutter will remain even if something is selected in that line. Other than an extension, it is probably the best you can do.

    You can also tweak the line number color for a active line with this colorCustomization:

    "editorLineNumber.activeForeground": "#fff",
    

    highlight line and number

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search