vscode java配置

launch.json

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"type": "java",
"name": "Debug (Launch) - Current File",
"request": "launch",
"mainClass": "com.haizhi.hora.HoraApplication",
"args": "--spring.config.location=/home/zhaohh/work_env/hora/hora/src/main/resources/application-test.yml"
}
]
}
 
settings.json
 
{
"java.completion.importOrder": [
"#",
"java",
"javax",
"",
"com.haizhi"
],
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"java.configuration.maven.userSettings": "/home/zhaohh/work_env/hora/settings.xml",
"java.checkstyle.configuration": "${workspaceFolder}/checkstyle.xml"
}
原文地址:https://www.cnblogs.com/zhaohuanhuan/p/13493285.html