How change the color of rulers in Visual Studio Code

我是研究僧i 提交于 2020-12-02 04:58:09

问题


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.color": "color"

But got an "unknown configuration setting error.


回答1:


In settings.json:

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



回答2:


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



来源:https://stackoverflow.com/questions/43873622/how-change-the-color-of-rulers-in-visual-studio-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!