VsCode搭建Java开发环境 - 王旌羽 - 博客园www.cnblogs.com
![7cf17ef01547cbacf5d25db37c368b76.png](https://i-blog.csdnimg.cn/blog_migrate/42965f7bd2575e84a5226a42789b0268.png)
1:在 Visual Studio Code 中打开扩展视图(Ctrl+Shift+X),输入关键词java、spring分别下载Java开发插件包和springboot插件包
![4b6eb7f9ab7ebba6f5413396daf65909.png](https://i-blog.csdnimg.cn/blog_migrate/d6bf3f336e4e5b75c76fbcc5f0a0463a.png)
![3a11f2bcbbabebdc0df42c34577ad562.png](https://i-blog.csdnimg.cn/blog_migrate/a7aff76cc06aa062fb477d6420c44f50.png)
以上必须,下面选装
![69b581b86fc19d47c200ab01becce82e.png](https://i-blog.csdnimg.cn/blog_migrate/4b2d56a3aad9c53b91f6bd3bdc6fad22.jpeg)
2:配置参数 点击设置按钮,进入设置选项,配置用户设置(文件->首选项->设置 Ctrl+,)
{
"editor.minimap.enabled": false,
"window.zoomLevel": 0,
"workbench.iconTheme": "vscode-great-icons",
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"editor.renderIndentGuides": false,
"editor.highlightActiveIndentGuide": false,
"java.home": "/usr/local/lib/jdk1.8.0_172", ###必需
"editor.fontSize": 15,
"editor.lineHeight": 30,
"maven.executable.path": "/usr/local/bin/apache-maven-3.5.4/bin/mvn", ###必需
"java.configuration.maven.userSettings": "/usr/local/bin/apache-maven-3.5.4/conf/settings.xml", ###必需
"maven.terminal.customEnv": [
{
"environmentVariable": "JAVA_HOME", ###必需
"value": "/usr/local/lib/jdk1.8.0_172" ###必需
}
],
"terminal.integrated.shell.linux": "/bin/bash",
"java.jdt.ls.vmargs": "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication",
"explorer.confirmDelete": false
}