1778682052

This commit is contained in:
Docker7530
2026-05-13 22:20:54 +08:00
parent 6b50219f55
commit 7f14056210
96 changed files with 3297 additions and 354 deletions
+19 -7
View File
@@ -1,14 +1,14 @@
```PowerShell
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "http://8.162.2.152/claude", [System.EnvironmentVariableTarget]::User)
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "sk-xxxx", [System.EnvironmentVariableTarget]::User)
```
mcp
## mcp
```
claude mcp add --transport http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: ctx7sk-21884782-852a-4ef8-8f26-83cd9b8c7d30" --scope user
claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp
```
```
claude mcp add -s user -t http context7 https://mcp.context7.com/mcp --header "CONTEXT7_API_KEY: ctx7sk-21884782-852a-4ef8-8f26-83cd9b8c7d30"
```
```
{
"morecup-context": {
"type": "stdio",
@@ -27,3 +27,15 @@ claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp
}
}
```
## 常用操作
### 权限系统
VS Code 设置:Allow Dangerously Skip Permissions
命令行启动法:claude --dangerously-skip-permissions
### 插件
superpowers 该插件可以教会 Claude 进行头脑风暴、使用子智能体驱动开发(内置代码审查、系统化Debug、TDD测试驱动开发),甚至教 Claude 如何编写和测试新的 Skill。
-11
View File
@@ -19,14 +19,3 @@ startup_timeout_sec = 30
env = { SystemRoot = "C:\\Windows" }
args = ["/c", "npx", "-y", "@wonderwhy-er/desktop-commander"]
```
```
aicodemirror
{
"OPENAI_API_KEY": "sk-ant-api03-Cb_9GtneUAuhHoCc26E-1MPF422fmWAVeLlW3BJHCYzUj9IoCxmImoZnHSeIBEfH4DRSXEny03N2f6QCUuYlwA"
}
packycode
{
"OPENAI_API_KEY": "sk-pJixdYiaLXi7LFb15bLdh1HyQ75nbgYs"
}
```
+196 -36
View File
@@ -1,15 +1,17 @@
# 总
```json
{
// --- 通用与外观 ---
"window.zoomLevel": 0.3,
"window.zoomLevel": 0.5,
"window.restoreWindows": "none",
"extensions.ignoreRecommendations": true,
"workbench.colorTheme": "One Dark Pro",
"workbench.iconTheme": "vscode-icons",
"workbench.startupEditor": "none",
"workbench.editor.closeOnFileDelete": true,
"workbench.colorTheme": "Light 2026",
"security.workspace.trust.enabled": false,
"editor.fontFamily": "JetBrainsMono Nerd Font Mono, JetBrains Mono, Consolas, 'Courier New', monospace",
"editor.fontFamily": "'JetBrainsMono Nerd Font Mono', Consolas, 'Courier New', monospace",
"editor.fontSize": 16,
"editor.lineNumbers": "interval",
"editor.cursorBlinking": "smooth",
@@ -17,30 +19,30 @@
"editor.renderWhitespace": "boundary",
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",
"editor.accessibilitySupport": "off",
"editor.stickyScroll.enabled": true,
"editor.codeLens": true,
"editor.detectIndentation": true,
"editor.linkedEditing": true,
"editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnSave": false,
"editor.formatOnSaveMode": "file",
"editor.aiStats.enabled": false,
"files.insertFinalNewline": true,
"explorer.confirmDragAndDrop": false,
// --- 搜索 ---
"search.exclude": {
"**/*.java": false
"**/*.java": false,
},
// --- 版本控制 ---
"git.autofetch": true,
"git.enableSmartCommit": true,
"git.confirmSync": false,
// --- 终端 ---
"terminal.integrated.windowsEnableConpty": true,
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.cursorStyleInactive": "line",
"terminal.integrated.cursorStyleInactive": "none",
"terminal.integrated.enablePersistentSessions": false,
"terminal.integrated.persistentSessionReviveProcess": "never",
"terminal.integrated.copyOnSelection": true,
@@ -50,39 +52,68 @@
"go.toolsGopath": "D:\\MyGo\\go-tools",
"go.toolsManagement.autoUpdate": true,
"[go]": {
"editor.defaultFormatter": "golang.go"
"editor.defaultFormatter": "golang.go",
},
// --- Python ---
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
"editor.defaultFormatter": "ms-python.autopep8",
},
// --- Toml ---
"evenBetterToml.schema.enabled": false,
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml",
},
// --- Xml ---
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml",
},
// --- PowerShell ---
"[powershell]": {
"editor.defaultFormatter": "ms-vscode.powershell",
},
// --- Lua ---
"[lua]": {
"editor.defaultFormatter": "sumneko.lua",
},
// --- Rust ---
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
},
// --- Java ---
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx4G -Xms100m -Xlog:disable -Dfile.encoding=UTF-8",
"java.jdt.ls.java.home": "E:\\Environment\\Jdks\\jdk-25_windows-x64_bin\\jdk-25.0.1", // 显式指定 JDT.LS 运行的 JDK
"java.jdt.ls.vmargs": "-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Dsun.zip.disableMemoryMapping=true -Xmx8G -Xms2G -Xlog:disable -Dfile.encoding=UTF-8",
"java.jdt.ls.lombokSupport.enabled": true,
"java.sharedIndexes.enabled": "on",
"java.autobuild.enabled": true,
"java.references.includeDecompiledSources": true,
"java.trace.server": "off",
"java.inlayHints.parameterNames.enabled": "literals",
"java.inlayHints.variableTypes.enabled": true,
"java.signatureHelp.description.enabled": true,
"java.configuration.maven.userSettings": "E:\\Environment\\Mavens\\settings.xml",
"java.configuration.updateBuildConfiguration": "automatic",
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "E:\\Environment\\Jdks\\jdk-8u431-windows-x64\\jdk1.8.0_431"
"path": "E:\\Environment\\Jdks\\jdk-8u431-windows-x64\\jdk1.8.0_431",
},
{
"name": "JavaSE-11",
"path": "E:\\Environment\\Jdks\\jdk-11.0.25_windows-x64_bin\\jdk-11.0.25"
"path": "E:\\Environment\\Jdks\\jdk-11.0.25_windows-x64_bin\\jdk-11.0.25",
},
{
"name": "JavaSE-17",
"path": "E:\\Environment\\Jdks\\jdk-17.0.13_windows-x64_bin\\jdk-17.0.13"
"path": "E:\\Environment\\Jdks\\jdk-17.0.13_windows-x64_bin\\jdk-17.0.13",
},
{
"name": "JavaSE-21",
"path": "E:\\Environment\\Jdks\\jdk-21_windows-x64_bin\\jdk-21.0.6",
"default": true
},
{
"name": "JavaSE-25",
"path": "E:\\Environment\\Jdks\\jdk-25_windows-x64_bin\\jdk-25.0.1"
}
"path": "E:\\Environment\\Jdks\\jdk-25_windows-x64_bin\\jdk-25.0.1",
"default": true,
},
],
"java.maven.downloadSources": true,
"java.completion.matchCase": "off",
@@ -98,8 +129,8 @@
"[java]": {
"editor.defaultFormatter": "josevseb.google-java-format-for-vs-code",
"editor.codeActionsOnSave": {
"source.removeUnusedImports": "always"
}
"source.removeUnusedImports": "always",
},
},
// --- Spring Boot ---
"boot-java.embedded-syntax-highlighting": true,
@@ -107,7 +138,7 @@
"boot-java.jpql": true,
// --- Maven ---
"maven.executable.path": "E:\\Environment\\Mavens\\apache-maven-3.9.9-bin\\apache-maven-3.9.9\\bin\\mvn.cmd",
"maven.executable.options": "-DskipTests",
"maven.executable.options": "-DskipTests -T 1C",
"maven.settingsFile": "E:\\Environment\\Mavens\\settings.xml",
"maven.showInExplorerContextMenu": true,
"maven.view": "hierarchical",
@@ -117,32 +148,161 @@
"maven.terminal.customEnv": [
{
"environmentVariable": "JAVA_TOOL_OPTIONS",
"value": "-Dfile.encoding=UTF-8 -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true"
"value": "-Dfile.encoding=UTF-8",
},
{
"environmentVariable": "MAVEN_OPTS",
"value": "-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true"
}
"value": "-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true",
},
],
// --- Toml ---
"[toml]": {
"editor.defaultFormatter": "tamasfe.even-better-toml"
},
// --- Xml ---
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
},
// --- PowerShell ---
"[powershell]": {
"editor.defaultFormatter": "ms-vscode.powershell"
},
// --- 质测 ---
"sonarlint.focusOnNewCode": false,
"sonarlint.automaticAnalysis": true,
"sonarlint.ls.javaHome": "E:\\Environment\\Jdks\\jdk-25_windows-x64_bin\\jdk-25.0.1",
"sonarlint.pathToNodeExecutable": "E:\\Environment\\Nvm\\nodejs\\node.exe",
// --- 联动 ---
"liveServer.settings.CustomBrowser": "chrome"
"liveServer.settings.CustomBrowser": "chrome",
// --- AI ---
"claudeCode.preferredLocation": "sidebar",
"chat.viewSessions.orientation": "stacked",
// --- GitLens ---
"gitlens.ai.model": "vscode",
"gitlens.ai.vscode.model": "copilot:gpt-4.1",
"gitlens.ai.generateCommitMessage.customInstructions": "请用中文生成简洁明确的提交信息",
"gitlens.currentLine.enabled": false,
"gitlens.hovers.currentLine.over": "line",
"gitlens.hovers.avatars": false,
"gitlens.hovers.currentLine.enabled": false,
"gitlens.graph.avatars": false,
"gitlens.views.commitDetails.files.layout": "tree",
// --- 其他 ---
"json.schemaDownload.trustedDomains": {
"https://developer.microsoft.com/json-schemas/": true,
"https://json-schema.org/": true,
"https://json.schemastore.org/": true,
"https://raw.githubusercontent.com/devcontainers/spec/": true,
"https://raw.githubusercontent.com/microsoft/vscode/": true,
"https://schema.tauri.app": true,
"https://schemastore.azurewebsites.net/": true,
"https://www.schemastore.org/": true,
},
}
```
# Java
```json
// --- Java ---
"java.jdt.ls.java.home": "E:\\Environment\\Jdks\\jdk-25_windows-x64_bin\\jdk-25.0.1", // 显式指定 JDT.LS 运行的 JDK
"java.jdt.ls.vmargs": "-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Dsun.zip.disableMemoryMapping=true -Xmx8G -Xms2G -Xlog:disable -Dfile.encoding=UTF-8",
"java.jdt.ls.lombokSupport.enabled": true,
"java.sharedIndexes.enabled": "on",
"java.autobuild.enabled": true,
"java.references.includeDecompiledSources": true,
"java.trace.server": "off",
"java.inlayHints.parameterNames.enabled": "literals",
"java.inlayHints.variableTypes.enabled": true,
"java.signatureHelp.description.enabled": true,
"java.configuration.maven.userSettings": "E:\\Environment\\Mavens\\settings.xml",
"java.configuration.updateBuildConfiguration": "automatic",
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "E:\\Environment\\Jdks\\jdk-8u431-windows-x64\\jdk1.8.0_431",
},
{
"name": "JavaSE-11",
"path": "E:\\Environment\\Jdks\\jdk-11.0.25_windows-x64_bin\\jdk-11.0.25",
},
{
"name": "JavaSE-17",
"path": "E:\\Environment\\Jdks\\jdk-17.0.13_windows-x64_bin\\jdk-17.0.13",
},
{
"name": "JavaSE-21",
"path": "E:\\Environment\\Jdks\\jdk-21_windows-x64_bin\\jdk-21.0.6",
},
{
"name": "JavaSE-25",
"path": "E:\\Environment\\Jdks\\jdk-25_windows-x64_bin\\jdk-25.0.1",
"default": true,
},
],
"java.maven.downloadSources": true,
"java.completion.matchCase": "off",
"java.completion.importOrder": ["", "javax", "java", "#"],
"java.compile.nullAnalysis.mode": "disabled",
"java.sources.organizeImports.starThreshold": 999,
"java.sources.organizeImports.staticStarThreshold": 999,
"java.referencesCodeLens.enabled": true,
"java.implementationCodeLens": "all",
"java.signatureHelp.enabled": true,
"java.debug.settings.onBuildFailureProceed": false,
"java.debug.settings.showLogicalStructure": true,
"[java]": {
"editor.defaultFormatter": "josevseb.google-java-format-for-vs-code",
"editor.codeActionsOnSave": {
"source.removeUnusedImports": "always",
},
},
// --- Spring Boot ---
"boot-java.embedded-syntax-highlighting": true,
"boot-java.highlight-codelens.on": true,
"boot-java.jpql": true,
// --- Maven ---
"maven.executable.path": "E:\\Environment\\Mavens\\apache-maven-3.9.9-bin\\apache-maven-3.9.9\\bin\\mvn.cmd",
"maven.executable.options": "-DskipTests -T 1C",
"maven.settingsFile": "E:\\Environment\\Mavens\\settings.xml",
"maven.showInExplorerContextMenu": true,
"maven.view": "hierarchical",
"maven.terminal.useJavaHome": true,
// 解决 Maven SSL 问题,自 3.9.0 起默认 不再使用 Wagon 做 HTTPS
// -Dmaven.resolver.transport=wagon
"maven.terminal.customEnv": [
{
"environmentVariable": "JAVA_TOOL_OPTIONS",
"value": "-Dfile.encoding=UTF-8",
},
{
"environmentVariable": "MAVEN_OPTS",
"value": "-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true",
},
],
```
# ibs-portal.code-workspace
```json
{
"folders": [
{
"path": "../Work/yd-hy/ibs-portal",
},
],
"settings": {
"maven.terminal.customEnv": [
{
"environmentVariable": "JAVA_TOOL_OPTIONS",
"value": "-Dfile.encoding=UTF-8",
},
{
"environmentVariable": "MAVEN_OPTS",
"value": "-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true",
},
{
"environmentVariable": "JAVA_HOME",
"value": "E:\\Environment\\Jdks\\jdk-8u431-windows-x64\\jdk1.8.0_431",
},
],
},
}
```
Java 开发插件
```
Google Java Format for VS Code
Spring Boot Extension Pack
Extension Pack for Java
```