20250417
This commit is contained in:
42
jdk_config.code-snippets
Normal file
42
jdk_config.code-snippets
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"JdkConfigWin": {
|
||||
"scope": "jsonc",
|
||||
"prefix": "jdk_config-win",
|
||||
"body": [
|
||||
"\"maven.terminal.customEnv\": [",
|
||||
"\t{",
|
||||
"\t\t\"environmentVariable\": \"JAVA_HOME\",",
|
||||
"\t\t\"value\": \"${2:$}{env:JDK_${1:8}}\",",
|
||||
"\t},",
|
||||
"],",
|
||||
"\"terminal.integrated.env.windows\": {",
|
||||
"\t\"JAVA_HOME\": \"${2:$}{env:JDK_${1:8}}\",",
|
||||
"\t\"path\": \"${2:$}{env:JDK_${1:8}}/bin;${2:$}{env:path}\",",
|
||||
"},"
|
||||
],
|
||||
"description": "Config JDK version in settings.json of VS Code."
|
||||
},
|
||||
"JdkConfigLinux": {
|
||||
"scope": "jsonc",
|
||||
"prefix": "jdk_config-linux",
|
||||
"body": [
|
||||
"\"java.configuration.runtimes\": [",
|
||||
"\t{",
|
||||
"\t\t\"name\": \"JavaSE-1.8\",",
|
||||
"\t\t\"path\": \"/home/zhouxy/softwares/jdk/jdk-8\"",
|
||||
"\t}",
|
||||
"],",
|
||||
"\"maven.terminal.customEnv\": [",
|
||||
"\t{",
|
||||
"\t\t\"environmentVariable\": \"JAVA_HOME\",",
|
||||
"\t\t\"value\": \"/home/zhouxy/softwares/jdk/jdk-8\",",
|
||||
"\t},",
|
||||
"],",
|
||||
"\"terminal.integrated.env.linux\": {",
|
||||
"\t\"JAVA_HOME\": \"/home/zhouxy/softwares/jdk/jdk-8\",",
|
||||
"\t\"PATH\": \"/home/zhouxy/softwares/jdk/jdk-8/bin:$$0{env:PATH}\",",
|
||||
"},",
|
||||
],
|
||||
"description": "Config JDK version in settings.json of VS Code."
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user