VS Code Vim: How do you highlight current line?

后端 未结 3 1186
一整个雨季
一整个雨季 2021-01-11 11:34

How do you highlight the current line using Vim VS Code?

This functionality would be awesome. Anyone know if this configuration is possible in Vim VS Code? http://vi

3条回答
  •  时光取名叫无心
    2021-01-11 12:14

    Try this in your settings.json:

    "workbench.colorCustomizations": {
    
      "editor.lineHighlightBackground": "#ff0000"
    }
    

    This assumes that you have

      "editor.renderLineHighlight": "line",
    

    (that is the default) set to "line" or ""all".

    [EDIT after your comment about selecting]

    I am not exactly sure what you are looking to do but Ctrl-C selects the current line and Ctrl-I highlights the entire line but doesn't select it. In neither case does the highlighting stay on a previous line after you move the cursor.

提交回复
热议问题