小编Aga*_*zyk的帖子

如何在git / macbook中将VScode设置为核心编辑器

我无法将Visual Studio Code设置为git的核心编辑器。当我尝试执行git commit时,我只会看到有关编辑器存在问题的信息。

MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor "/Applications/Visual Studio Code.app" --wait

MacBook-Air-Agata:~ agataskrzypczyk$ git config --global core.editor
/Applications/Visual Studio Code.app

MacBook-Air-Agata:~ agataskrzypczyk$ cd nowy

MacBook-Air-Agata:nowy agataskrzypczyk$ git commit

hint: Waiting for your editor to close the file... /Applications/Visual Studio Code.app: /Applications/Visual: No such file or directory
error: There was a problem with the editor '/Applications/Visual Studio Code.app'.
Please supply the message using either -m or -F option.
MacBook-Air-Agata:nowy agataskrzypczyk$
Run Code Online (Sandbox Code Playgroud)

git visual-studio-code

1
推荐指数
2
解决办法
986
查看次数

标签 统计

git ×1

visual-studio-code ×1