javascript - VS Code line break or wrap - Stack Overflow

When I write code in Visual Studio Code, and the line gets long, It doesn't break. It goes past th

When I write code in Visual Studio Code, and the line gets long, It doesn't break. It goes past the edge of the screen and that is rather annoying. What I want is for the line to break and then go on below, I believe this is called wrap or breaking I'm not sure. I use a split screen on my puter so only one half is my code editor and the other half is my project so I can see as I update it. Any help?

When I write code in Visual Studio Code, and the line gets long, It doesn't break. It goes past the edge of the screen and that is rather annoying. What I want is for the line to break and then go on below, I believe this is called wrap or breaking I'm not sure. I use a split screen on my puter so only one half is my code editor and the other half is my project so I can see as I update it. Any help?

Share asked Jun 24, 2021 at 8:33 CalemCalem 511 gold badge1 silver badge2 bronze badges 2
  • Try toggling word wrap with the shortcut of "Alt + Z". This would wrap a line if it goes off the screen – AnsonH Commented Jun 24, 2021 at 9:09
  • bellow is same answer click here – Ata ur Rehman Commented Jun 24, 2021 at 9:37
Add a ment  | 

2 Answers 2

Reset to default 8

Command

Ctrl+Shift+P to open mand palette and type wrap there.

Windows

Alt+Z

Mac

⌥+Z

There's a setting for that called editor.wordWrap.

You can search the settings for "wrap" and set some additional customization to how you want VSCode to behave when wrapping text.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743674001a4488255.html

相关推荐

  • javascript - VS Code line break or wrap - Stack Overflow

    When I write code in Visual Studio Code, and the line gets long, It doesn't break. It goes past th

    1天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信