How change the color of rulers in Visual Studio Code

后端 未结 2 1329
礼貌的吻别
礼貌的吻别 2021-02-18 13:39

Not sure if this feature is included in the VSCode settings yet, but I\'d love to change the ruler color from it\'s default grey.

Tried:

\"editor.rulers.         


        
2条回答
  •  面向向阳花
    2021-02-18 14:27

    From the February 2020 v1.43 release, you can set per-ruler colors. Use like this:

    "editor.rulers": [
      {
        "column": 80,
        "color": "#ff00ff"
      },
      100,  // a ruler with the default or editorRuler.foreground color at column 100
      {
        "column": 120,
        "color": "#ff0000"
      },
    ],
    

    See the release notes here: https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_43.md#multiple-rulers-with-different-colors

提交回复
热议问题