Please help I need to remove the below line when editing .dart files on visual studio code.
Asked
Active
Viewed 774 times
2
-
Does this answer your question? [How can I switch word wrap on and off in Visual Studio Code?](https://stackoverflow.com/questions/31025502/how-can-i-switch-word-wrap-on-and-off-in-visual-studio-code) – Red May 13 '21 at 15:33
-
Hi, thank you for assisting, I managed to find a way to fix it. i edited settings.json under "[dart]": { "editor.rulers": [ 80 ] }, I removed that setting and everything was fine. – thobani May 13 '21 at 15:45
-
1who has added this `dart` specific setting, 80 chars was for VGA screens, we now have 4K monitors – rioV8 May 13 '21 at 15:48
-
We have found 125 is a good number to avoid wrapping and scrolling on laptop screens while not making monitors look like it's scaled to print on a toilet roll – Red Oct 29 '21 at 14:43
-
@rioV8 Exactly! It's extremely annoying to have that line – Julia Mar 28 '22 at 11:49
-
You could also need to set "editor.formatOnSave": false in the [dart] section of the settings. That works for me in addition of removing editor.rules – Daniel Ardison May 31 '22 at 18:07
1 Answers
3
- Shift + CMD + P.
- Type "settings"
- Click on "preferences: open settings(JSON)"
That will open settings.json file, then remove the "editor.rulers" and save it. The vertical line will be gone.

Mahinthan177
- 774
- 1
- 9
- 9