cedric chen (@cedricthecoder) 在 令人愉悦的 Claude Code 终端配置 中发帖
配置VScode集成PowerShell 7 (pwsh)环境运行claude code:
即使系统中安装了 PowerShell 7,VSCode 可能仍然使用旧版powerShell/cmd/git bash。
打开 VSCode 设置(快捷键 Ctrl + ,)
搜索:terminal.integrated.defaultProfile.windows
将值修改为:
"terminal.integrated.defaultProfile.windows": "PowerShell(pwsh.exe)"
如果你和我一样安装了多个版本的 PowerShell,可在:
terminal.integrated.profiles.windows
中确认 PowerShell 指向的路径(一般为 C:\\Program Files\\PowerShell\\7\\p...