Vertical rulers in Visual Studio Code

后端 未结 7 1587
盖世英雄少女心
盖世英雄少女心 2020-11-28 16:54

How can vertical rulers (note the plural) be configured in Visual Studio Code?

In Sublime Text 2 I can do

\"rulers\": [72, 80, 100, 120]


        
相关标签:
7条回答
  • 2020-11-28 17:55

    In v1.43 is the ability to separately color the vertical rulers.

    See issue Support multiple rulers with different colors - (in settings.json):

    "editor.rulers": [
      {
        "column": 80,
        "color": "#ff00FF"
      },
      100,  // <- a ruler in the default color or as customized (with "editorRuler.foreground") at column 100
      {
        "column": 120,
        "color": "#ff0000"
      },
    ], 
    
    0 讨论(0)
提交回复
热议问题