在 settings.json 里添加如下代码即可:
"editor.rulers": [80]
参考:
https://www.zhihu.com/question/61341938/answer/186940141