Blog Post

VSCode Tips–Remove the Highlighted Line

,

VSCode was making me crazy as I was writing a script. I like a light theme, and every time I went to type, I saw this:

2019-08-13 11_17_00-CreateMaskedImage.ps1 - SitC 2018 - CreateProtectManageDB - Visual Studio Code

The highlight was distracting for me. I could see why people might like it, but I don’t. I tried the command palatte, but couldn’t find a setting that was helpful. After scrolling back and forth a few times, I decided to search.

This SO post was helpful, and here are the steps I followed to change the setting.

First, I opened up the Default settings from the command palette, like this:

2019-08-13 11_21_36-CreateMaskedImage.ps1 - SitC 2018 - CreateProtectManageDB - Visual Studio Code

Next, I searched for the “editor.renderLineHighLight” setting. I copied this line into the clipboard.

2019-08-13 11_22_36-defaultSettings.json - SitC 2018 - CreateProtectManageDB - Visual Studio Code

Now, go back and open the User Settings.

2019-08-13 11_23_13-CreateMaskedImage.ps1 - SitC 2018 - CreateProtectManageDB - Visual Studio Code

Paste in the line and change “line” in the value to “none”.

2019-08-13 11_23_48-? settings.json - SitC 2018 - CreateProtectManageDB - Visual Studio Code

Save this, and annoyance removed.

2019-08-13 11_24_25-CreateMaskedImage.ps1 - SitC 2018 - CreateProtectManageDB - Visual Studio Code

Original post (opens in new tab)
View comments in original post (opens in new tab)

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating