vscode学习-搭建java开发环境

1.安装扩展

vscode扩展里搜索Java Extension Pack和Spring Boot Extension Pack

2.配置路径

配置settings

{
"workbench.editor.enablePreview": false,
    "workbench.editor.enablePreviewFromQuickOpen": false,
    "editor.renderIndentGuides": false,
    "editor.highlightActiveIndentGuide": false,
    "java.home": "D:/soft_install/java/jdk1.8.0_251",        
    // "editor.fontSize": 15,
    "editor.lineHeight": 30,
    "maven.executable.path": "D:/soft_install/maven/maven3.5.4/bin",       
    "java.configuration.maven.userSettings": "D:/soft_install/maven/maven3.5.4/conf/settings.xml",      
    "maven.terminal.customEnv": [
      {
        "environmentVariable": "JAVA_HOME",       
            "value": "D:/soft_install/java/jdk1.8.0_251"       
      }
    ],
    // "terminal.integrated.shell.linux": "/bin/bash",
    "java.jdt.ls.vmargs": "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
    "explorer.confirmDelete": false,
    "java.requirements.JDK11Warning": false,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue"
}   

配置debug (laugh.json)
07go119
可以直接使用默认生成的