【发布时间】:2019-05-19 17:47:51
【问题描述】:
我想将我的默认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'.
我不知道如何解决它...你知道我该怎么做吗?
谢谢!!
【问题讨论】:
-
“代码”可执行文件不在 PATH 中。也许您的解决方案在code.visualstudio.com/docs/setup/mac
标签: git macos visual-studio-code