如何在 java 的 vs 代码中自动跳过另一行而不是自动换行?

How do I auto skip a another line instead of word wrapping in vs code for java?

我在 java 的 vs 代码中启用了自动换行设置。我意识到它实际上并没有跳过一行:

但我希望所有这些都是不同的行,并且会这样保存:

这是我的自动换行设置:

这是我的 settigns.json 文件:

{
"terminal.integrated.shell.windows": "C:\Windows\System32\cmd.exe",
"files.autoSave": "afterDelay",
"workbench.colorTheme": "One Dark Pro",
"python.pythonPath": "C:\Users\atleo\AppData\Local\Programs\Python\Python39\python.exe",
"workbench.startupEditor": "newUntitledFile",
"window.zoomLevel": 0,
"C_Cpp.updateChannel": "Insiders",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"python.languageServer": "Pylance",
"[Log]": {

    "editor.wordWrap": "off"
},
"java.configuration.checkProjectSettingsExclusions": false,
"python.autoComplete.addBrackets": true,
"python.analysis.completeFunctionParens": true,
"workbench.editorAssociations": [
    {
        "viewType": "jupyter.notebook.ipynb",
        "filenamePattern": "*.ipynb"
    }
],
"editor.rulers": [
    { "column": 80,
    "color": "#307777"}
],
"kite.showWelcomeNotificationOnStartup": false,
"java.configuration.runtimes": [

],
"[java]": {

    "editor.suggest.snippetsPreventQuickSuggestions": false
},
"files.associations": {
    "*.java": "java"
},
"java.refactor.renameFromFileExplorer": "autoApply",
"git.autofetch": true,

"editor.wordWrap": "wordWrapColumn",
"[markdown]": {

    "editor.wordWrap": "on",
    "editor.quickSuggestions": true
},

}

此功能将在下次更新中添加,可以Provide better format configuration experience

[更新]

使用 java 扩展最新版本,您可以从命令面板实现此功能,然后选择 java:打开 java 带预览的格式化程序设置.详细信息请查看Java on Visual Studio Code Update – May 2021.