随着窗口大小在 vs 代码中减小,自动输入(下一行)代码?

rab*_*_ta 2 brackets visual-studio-code vscode-settings

我正在使用括号编辑器,当该行与窗口代码一起使用时,括号中将使用下一行 在此处输入图片说明 但在 VS Code 中,代码会继续 在此处输入图片说明 在令人沮丧的同一行中,我用谷歌搜索了很多设置,但我只是不知道要搜索什么。

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

请帮忙

Rom*_*syk 6

尝试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"
Run Code Online (Sandbox Code Playgroud)

或者 File -> Preferences -> Settings 在此处输入图片说明