如何在 vscode 中查看全宽代码 [英] How to see codes in full width in vscode

查看:54
本文介绍了如何在 vscode 中查看全宽代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 VS Code 中编码时使用完整视口.但是当我扩展我的 VS Code 窗口时,这些行没有扩展.任何修复?

I want to use full viewport while coding in VS Code. But the lines are not expanding when i expand my VS Code window. Any Fix ?

推荐答案

要使用的正确配置:


为了配置 V.S.代码使代码行在您的编辑器只会在视口的末尾换行,并且以前从未,您需要为设置:editor.wordWrap

有 4 个不同的值可以分配给editor.wordWrap 设置.有一个我相信然而,这正是您所要求的;其他 2 个三个也可以,所以我将它们全部列出来,并建议我认为最适合你的那个.以下是唯一的开箱即用"换行配置VSCode 支持,具体如下:

There are 4 different values that can be assigned to the editor.wordWrap setting. There is one that I believe is exactly what you are asking for, however; 2 of the other three could work too, so I will list them all, and suggest the one I think will work best for you. The following are the only "out-of-the-box" line-wrapping configurations that VSCode supports, and they are as follows:

— 将 off 分配给 wordWrap 设置 将使其成为这样您的编辑器行将永远不会自动换行.唯一的将一行移动到下一行的方式是,如果您添加换行符 — 按 [ENTER] 键.- 和继续在下一行输入文本.这边走可以为您工作,因为您可以 100% 控制何时断线.

— Assigning off to the wordWrap setting will make it so that your editors lines will never auto-wrap. The only way a line will ever be moved to the next line is if you add a line break — by pressing the [ENTER] key. — and proceed to continue typeing text on the next line. This way could work for you, because you get 100% control over when the lines break.

  • on 分配给 editor.wordWrap 设置使其这样编辑器中的代码行就会换行正是视口结束的地方.无论多大,或多大编辑器的视口宽度很小,线条总是扩展整个视口,以前从未如此.
  • Assigning on to the editor.wordWrap setting makes it so that that the lines of code in your editor will wrap exactly where the viewport ends. No matter how big, or how small the editor's viewport width is, the lines always extend the entirety of the viewport, and never before.

注意: "on" 对我来说听起来就像你所要求的在你的问题中

  • 当您分配 wordWrapColumn —to— editor.wordWrap" 编辑器视口中的代码行将在您设置 editor.wordWrapColumn 的任何设置中换行.更具体地说,我会给你一个例子.
  • When you assign wordWrapColumn   —to—   "editor.wordWrap" the lines of code inside your editors view-port will wrap at what ever you set the setting editor.wordWrapColumn to. To be more specific, I'll give you an example.
  • 这是迄今为止最流行的配置,因为它经常与 3rd 方格式化程序和 linter(例如 ESLint &更漂亮.Prettier 的 printWidth 设置与 editor.wordWrap":wordWrapColumn" 相结合,是一种极其可靠且一致的配置.

——最后是 bounded",bounded 是 on 和打印宽度的混合.简而言之,如果两个条件中的任何一个为真,则行将换行.- 第一行将在 "editor.wordWrapColumn" 设置的位置换行,就像配置示例 #3 一样.- 其次,线条将在视口的末端换行.重申一下我刚刚输入的内容,行在 _"editor.wordWrapColumn"'_s 值处换行,除非视口小于 "editor 的值.wordWrapColumn",在这种情况下,行在视口处换行.

— Last is "bounded", bounded is a mix between on, and print width. In a nutshell, lines will wrap if either of two conditions are true. - First lines will wrap at what ever "editor.wordWrapColumn" is set to, just like the configuration example #3. - Secondly, lines will wrap at the end of the view port. To reiterate through what I just typed, lines wrap at _"editor.wordWrapColumn"'_s value, unless the view-port is smaller than the value of "editor.wordWrapColumn", in that case lines wrap at the view-port.

这篇关于如何在 vscode 中查看全宽代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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