如何在 VSC 中使用全宽视口进行文本编辑? [英] How to use full width of viewport for text editing in VSC?

查看:30
本文介绍了如何在 VSC 中使用全宽视口进行文本编辑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 macOS (10.12) 上的 Visual Studio Code (1.20.1) 中,编写 Markdown 文本文件,窗口的右五分之一是空白的.我有以下可能相关的设置:

In Visual Studio Code (1.20.1) on macOS (10.12), writing markdown text files, about the right fifth of the window is blank. I have the following possibly relevant settings:

"editor.wordWrap": "on",
"editor.minimap.enabled": false,
"html.format.wrapLineLength": 0,

根据默认设置文件,这应该提供视口包装".我怎样才能让它使用视口的全宽?这是它的样子:

This should give 'viewport wrapping', according to the default settings file. How can I make it use the full width of the viewport? Here's what it looks like:

推荐答案

看起来环绕位置是基于某种等宽字体而不是编辑器中使用的字体计算的.

Looks like the wrapping position is calculated based on some monospaced font and not the font used in the editor.

使用比例字体 (SourceHanSans)

Using proportional font (SourceHanSans)

使用等宽字体 (SourceHanCodeJP)

Using monospaced font (SourceHanCodeJP)

这篇关于如何在 VSC 中使用全宽视口进行文本编辑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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