根据文件类型在 vscode 中设置垂直标尺? [英] Set vertical rulers in vscode based on file type?

查看:24
本文介绍了根据文件类型在 vscode 中设置垂直标尺?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望仅在查看 *.py 文件时设置以下标尺.这可能吗?

I wish to set the following rulers only when viewing *.py files. Is that possible?

{
    "editor.rulers": [72, 79]
}

推荐答案

截至 1.9 版,引入了特定于语言的设置.这意味着您现在可以使用以下配置来实现您想要的:

As of version 1.9, Language specific settings was introduced. This means that you can now use the following configuration to achieve what you want:

"[python]": {
    "editor.rulers": [72, 79]
}

这篇关于根据文件类型在 vscode 中设置垂直标尺?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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