| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- // https://containers.dev/
- {
- "name": "[ Golang 工具库 ]",
- "service": "go_kit",
- "dockerComposeFile": "../docker-compose.yml",
- "workspaceFolder": "/workspace",
- "shutdownAction": "none", // none,stopContainer,stopCompose
- "postCreateCommand": "cd /workspace/_init && sh ./init",
- "remoteEnv": {
- "HTTP_PROXY": "http://host.docker.internal:7890",
- "HTTPS_PROXY": "http://host.docker.internal:7890",
- "NO_PROXY": "localhost,127.0.0.1,host.docker.internal"
- },
- "customizations": {
- "vscode": {
- "settings": {
- // 禁用 SSL 验证(如果你在使用代理服务器时遇到证书问题)
- "http.proxyStrictSSL": false,
- // 从 http 和 https 位置提取 JSON 架构
- "json.schemaDownload.enable": false,
- // 设置 Markdown 文件使用默认编辑器打开
- "workbench.editorAssociations": {
- "*.md": "default",
- "*.markdown": "default"
- },
- // 设置制表符宽度为 2 个空格
- "editor.tabSize": 2,
- // 设置 Go 语言格式化工具为 gofmt
- "go.formatTool": "gofmt",
- // 设置 Go 测试标志,禁用测试缓存
- "go.testFlags": ["-count=1"]
- },
- "extensions": [
- // AI 助手
- "MarsCode.marscode-extension",
- // GoLang
- "golang.go",
- // Database Client JDBC
- "cweijan.dbclient-jdbc",
- // MySQL Client
- "cweijan.vscode-mysql-client2",
- // MySQL语法高亮 & 代码片段
- "zendobk.mysql",
- // 在 VSCode 中显示 PDF 文件
- "tomoki1207.pdf",
- // Office Viewer
- "cweijan.vscode-office",
- // 快捷键绑定
- "ms-vscode.sublime-keybindings",
- // 多行文本对齐
- "yo1dog.cursor-align",
- // 文本互换
- "davidmart.swap-word",
- // Git Graph
- "mhutchie.git-graph",
- // .env 文件语法支持
- "mikestead.dotenv"
- ]
- }
- }
- }
|