将Visual Studio Code设置为OSX上的全局Git编辑器 [英] Set Visual Studio Code to be global Git editor on OSX
本文介绍了将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.
这篇关于将Visual Studio Code设置为OSX上的全局Git编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文