在 VS Code 中打断长行的属性名称是什么? [英] What is the property name to break long lines in VS Code?

查看:34
本文介绍了在 VS Code 中打断长行的属性名称是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我有很长的文本行时,我想在下一行显示它.

When I have long text line I would like to show it next line.

VS Code 中的属性名称是什么?

What is the property name in VS Code?

推荐答案

File>下的菜单首选项(Mac 上的代码 > 首选项 > 设置) 提供用于配置用户和工作区设置的条目.为您提供了默认设置列表.

The menu under File > Preferences (Code > Preferences > Settings on Mac) provides entries to configure user and workspace settings. You are provided with a list of Default Settings.

Set editor.wordWrap: on 在您的 User Settings or Workspace Settings 下首选项.

Set editor.wordWrap: on in your User Settings or Workspace Settings under preference.

选择以下选项以更改为所需的设置.

Select the below options to change to the desired settings.

  • 离线 - 永远不会换行.
  • on - 行将在视口宽度处换行.
  • wordWrapColumn - 行将在Editor: Word Wrap Column"处换行.
  • bounded - 行将在视口和编辑器:自动换行列"的最小值处换行.

正如Jonathan Ramos 建议",您可以使用快捷方式(Visual Studio Code 的键绑定) alt+z 或选择 View >从菜单切换自动换行.

As "Jonathan Ramos suggest", you can use shortcuts (Key Bindings for Visual Studio Code) alt+z or select View > Toggle Word Wrap from Menu.

有关用户和工作区设置

这篇关于在 VS Code 中打断长行的属性名称是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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