Jes*_*ica 7 git macos visual-studio-code
我想将我的默认 git 编辑器配置为 Visual Studio Code,但在配置后出现以下错误,然后使用它:
username ~ $ git config --global core.editor "code --wait"
username ~ $ git config --global -e
hint: Waiting for your editor to close the file... code --wait: code: command not found
error: There was a problem with the editor 'code --wait'.
Run Code Online (Sandbox Code Playgroud)
我不知道如何解决它...你知道我该怎么做吗?
谢谢!!
小智 14
在你的 VSCode 上,
SHIFT+ Command+P
Shell 命令:在 PATH 中安装“代码”命令
它将“代码”设置为 vscode 的可执行路径。
现在在终端下面运行:
git 配置 --global --edit