自动输入(下一行)代码,因为 window 大小在 vs 代码中减小?

auto enter(nextline) the code as window size decreases in vs code?

我用的是括号编辑器,当括号里的行是window代码时会使用下一行 但在 VS Code 中,代码只是继续 在令人沮丧的同一行中,我用谷歌搜索了很多设置,但我只是不知道要搜索什么。

我知道有一些设置需要更改。

请帮忙

尝试 Alt+Z 或在主菜单中 View -> Toggle Word Wrap

您也可以在 settings.json

中启用它
// Controls how lines should wrap.
//  - off: Lines will never wrap.
//  - on: Lines will wrap at the viewport width.
//  - wordWrapColumn: Lines will wrap at `editor.wordWrapColumn`.
//  - bounded: Lines will wrap at the minimum of viewport and `editor.wordWrapColumn`.
"editor.wordWrap": "on"

File -> Preferences -> Settings

对于 Mac 用户:按 选项 + z