Vertical rulers in Visual Studio Code

configuration, visual-studio-code

Solution

Visual Studio Code 0.10.10 introduced this feature. To configure it, go to menu File → Preferences → Settings and add this to to your user or workspace settings:

"editor.rulers": [80,120]

The color of the rulers can be customized like this:

"workbench.colorCustomizations": {
    "editorRuler.foreground": "#ff4081"
}

Problem

Rendering More than One Ruler in VS Code VS Code's default configuration for a ruler is demonstrated below. ``` "editor.ruler": 80 ``` The issue I am having with the default VS Code configuration (as shown above) is that it only renders a single ruler. In the Sublime Text Editor I can render as many rulers as I like using the following Sublime configuration. ``` "rulers": [72, 80, 100, 120] ``` Is it possible to render multiple rulers in V.S. Code. If it is possible, What does a multi-ruler configuration look like in VS Code?

Original source

Related problems