Vertical rulers in Visual Studio Code

后端 未结 7 1631
盖世英雄少女心
盖世英雄少女心 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:34

    Visual Studio Code 0.10.10 introduced this feature. To configure it, go to menu FilePreferencesSettings 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"
    }
    

提交回复
热议问题