This commit is contained in:
2025-04-17 15:56:06 +08:00
commit 62d1c7a378
18 changed files with 1830 additions and 0 deletions

42
jdk_config.code-snippets Normal file
View 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."
}
}