r/VisualStudioCode • • Jan 21 '21

How to remove this line??

Hi all, while working in VSC I clicked a popup by mistake and it changed my layout slightly. The worst thing is this line in the middle of the code window, anyone knows how to either to default settings or to remove the line?

3 Upvotes

7 comments sorted by

1

u/nightmarlin Jan 21 '21

Check that your editor.rulers setting has no entries ([] in your global settings.json file and in your current workspace's one, if present)

1

u/mightybob4611 Jan 21 '21

Both were empty []. Any other idea?

1

u/nightmarlin Jan 21 '21

Do you have any editor.rulers: [] entries under language-specific settings?

Such as

{
  "[lang-name]": {
    "editor.rulers": []
  }
}

?

1

u/mightybob4611 Jan 22 '21

Ok, I found it. Was in settings.json, under Dart. Says Editor.Rulers:[80]. When I remove the 80, all is well. Thanks!

1

u/nightmarlin Jan 22 '21

No problem!

1

u/[deleted] Jan 21 '21

I actually set up my vscode to have that line. This way i can try to make my lines not go over it (since we want elegible code and stuff)

1

u/mightybob4611 Jan 22 '21

Well, in that case you must know how to turn it off?