Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the property name to break long lines in VS Code?

When I have long text line I would like to show it next line. enter image description here

What is the property name in VS Code?

like image 303
Stepan Suvorov Avatar asked Nov 24 '16 09:11

Stepan Suvorov


People also ask

How do you wrap a long text in VS Code?

wordWrap": "on" You can toggle word wrap for the VS Code session with ⌥Z (Windows, Linux Alt+Z).

How do you write a multiline in VS Code?

Select the lines you want and then press: Windows: Shift + Alt + i. Mac: shift + option + i.


1 Answers

The menu under File > Preferences or press Ctrl+, (on Mac Code > Preferences > Settings or press Command (or Cmd) ⌘+,) provides entries to configure user and workspace settings. You are provided with a list of default Settings.

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

Select the below options to change to the desired settings.

  • Off - Lines will never wrap.
  • on - Lines will wrap at the viewport width.
  • wordWrapColumn - Lines will wrap at "Editor: Word Wrap Column".
  • bounded - Lines will wrap at the minimum of viewport and "Editor: Word Wrap Column".

You can toggle word wrap for the VS Code session with Alt+Z (macOS: Option (or Alt) ⌥+Z) or select View > Word Wrap from Menu.

For more about User and Workspace Settings or Key Bindings for Visual Studio Code

like image 80
Mable John Avatar answered Sep 18 '22 19:09

Mable John