打開settings.json
打開設置,點擊擴展,而後點擊Java Test Runner,而後點擊在settings.json中編輯javascript
配置java.home
而後在最後一行添加java.home配置便可:css
{
"editor.wordWrap": "on",
"workbench.iconTheme": "vs-minimal",
"explorer.confirmDelete": false,
"files.encoding": "utf8",
"window.zoomLevel": 0,
"editor.suggestSelection": "first",
"files.autoGuessEncoding": true,
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"files.associations": {
"*.java": "java"
},
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.integrated.inheritEnv": false,
"workbench.startupEditor": "newUntitledFile",
"[css]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"terminal.integrated.rendererType": "dom",
"java.configuration.checkProjectSettingsExclusions": false,
"[java]": {},
"java.errors.incompleteClasspath.severity": "ignore",
"java.home": "E:\\java\\java9\\jdk-9",
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
重啓VScode
最後重啓VScode便可.
————————————————
版權聲明:本文爲CSDN博主「藍藍223」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處連接及本聲明。
原文連接:https://blog.csdn.net/qq_21808961/article/details/102256150html