引自 https://stackoverflow.com/questions/29968499/vertical-rulers-in-visual-studio-code
打开设置
File > Preferences > Settings
搜索 rulers
点击 Edit in settings.json
添加一行
"editor.rulers": [80,120]
参考线颜色可以自定义
"workbench.colorCustomizations": { "editorRuler.foreground": "#ff4081" }