将Visual Studio Code设置为OSX上的全局Git编辑器

问题描述:

我想将VS Code设置为我的默认git编辑器,以执行诸如rebase之类的命令. VS Code网站上似乎没有对此进行记录.我发现有一个关于在Windows上执行此操作的问题,听起来像是成功参半:

I want to set VS Code to be my default git editor for commands such as rebase. This doesn't seem to be documented on the VS Code website. I've found a SO question about doing it for Windows, which sounds like it has mixed success: How to use Visual Studio Code as Default Editor for Git

有人在OSX上对此进行管理吗?

Has anyone managed this on OSX?

目前VS Code无法实现,但已计划在将来使用.

我们的VS Code 1.0版本的更新:

现在可以!您需要做的就是使用命令行中新引入的--wait选项将Code配置为git编辑器.

This is now possible! All you need to do is to configure Code as the git editor using the newly introduced --wait option from the command line.