文章目录
- 准备
- Conda shell的启动命令
- Step 1 定位到启动快捷方式
- Step 2 找到启动脚本
- Cursor terminal setting
- Step1 打开默认terminal
- Step2 Configure terminal setting
- Step3 Config with settings.json
笔者在使用cursor/vscode 时发现打开terminal终端使用powershell时 先是无法使用各种命令,解决之后发现又无法使用conda命令,特此记录。
本文同样适用于 Windows 版本的VSCode 集成 Powershell terminal
准备
- Cursor 已安装
- Conda 已安装
- Powershell 已安装
注意:Cursor 启动时需要默认用管理员权限启动,不然 terminal 使用的 powershell 将不能执行任何命令。
Conda shell的启动命令
Step 1 定位到启动快捷方式
Step 2 找到启动脚本
将目标全部复制出来:
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& ‘C:\Users\sim\miniconda3\shell\condabin\conda-hook.ps1’ ; conda activate ‘C:\Users\sim\miniconda3’ "
Cursor terminal setting
Step1 打开默认terminal
Step2 Configure terminal setting
Step3 Config with settings.json