vscode ----> 学习笔记

java开发环境

jdk配置

maven配置

file --> preferences --> settings

在search settings搜索关键词 java.home , maven.terminal.useJavaHome ,java.configuration.maven.userSettings , search.exclude。在working space中配置下面的配置[json格式],它将会覆盖默认的配置,然后重启vscode生效。

1 "java.home":"",  # java_home 默认会使用已安装的jdk
2 "maven.terminal.useJavaHome": true,
3 "java.configuration.maven.userSettings":"your settings.xml file location", #maven settings.xml 绝对路径
4 "search.exclude": {
5             "**/node_modules": true,
6             "**/bower_components": true,
7             "**/target": true,
8             "**/logs": true
9         }

 参考博客

https://javahello.github.io/2018/02/26/ubuntu/vscode-java-environment/

猜你喜欢

转载自www.cnblogs.com/mrray1105/p/10200751.html