12

I have these wierd two vertical lines in VSCode editor window. What are they & how do you remove them?

enter image description here https://www.diaryofacoder.com/screenshot.png

The following was in my settings.json file that caused the problem:

"editor.rulers": [
        72,50
    ],
3
  • They look like line length guides so you can tell if your lines of code are too long for whatever coding style you use, but they’re placed very early for that (usually the default would be 80 chars). Commented Feb 9, 2019 at 3:37
  • Possibly some extension modified the editor.rulers setting? It is not set by default. Commented Feb 9, 2019 at 4:47
  • 2
    Possible duplicate of Vertical rulers in Visual Studio Code? Commented Feb 10, 2019 at 10:48

1 Answer 1

22

Remove the "editor.rulers": [140] from editor settings as follows:

enter image description here enter image description here

Sign up to request clarification or add additional context in comments.

7 Comments

@coding4fun Sure! I have checked it my side and that was the issue.
out of curiosity do you know the purpose of the lines. I can't think of anything they would be helpful for....
Most code style guidelines impose limits in line lenghts to avoid the need of horizontal scroll.
@coding4fun Hi, You did not give me any update as you said!
@TanvirArjel Sorry for taking so long to report back. I just got busy with other things but yep that was the problem. Thanks for your help
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.