How to make ruler always be shown in Sublime text 2?

前端 未结 7 1350
无人及你
无人及你 2020-12-22 17:12

I use Sublime Text 2 and want a Ruler to be shown in every file with specific line-height. But I have to show it manually in every file.

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-22 17:53

    Go to Sublime Text > Preferences > Settings - User

    Add a "rulers" setting with the lines you want for the ruler:

    // Adds a single vertical ruler at column 80
    "rulers": [80],
    

    If you want multiple rulers, separate the values with a comma:

    // Adds two vertical rulers: one at column 80 and one at column 120
    "rulers": [80, 120],
    

    Rulers not showing? Rulers are only shown when using a monospace font, which is the default font for Sublime Text. Ensure you are using a monospace font if the settings above don't work for you.

提交回复
热议问题