Visual Studio Code 中的垂直标尺 [英] Vertical rulers in Visual Studio Code

查看:35
本文介绍了Visual Studio Code 中的垂直标尺的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Visual Studio Code 中配置垂直标尺(注意复数)?

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

在 Sublime Text 2 中我可以做到

In Sublime Text 2 I can do

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

这在 Visual Studio 中是如何工作的?

How does this work in Visual Studio?

"editor.ruler": 80

只产生一个垂直标尺.

推荐答案

Visual Studio Code 0.10.10 引入了此功能.要配置它,请转到菜单 File首选项设置并将其添加到您的用户或工作区设置:

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"
}

这篇关于Visual Studio Code 中的垂直标尺的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆