容器沙盒环境,百分百安全,自带各种插件
文档地址:https://code.claude.com/docs/en/devcontainer (或 Anthropic 官方文档中的 Claude Code 部分)。
使用步骤(简要)
安装 VS Code 和 Dev Containers 扩展。
在项目根目录创建 .devcontainer 文件夹,复制官方参考配置(可从 Claude Code 的 GitHub 仓库或文档中获取)。
打开项目在 VS Code 中,选择 “Reopen in Container” 重启容器。
在容器终端运行 claude 启动 Claude Code。
评论 (0)