Set Visual Studio Code to be global Git editor on OSX

后端 未结 4 1852
Happy的楠姐
Happy的楠姐 2020-12-31 04:28

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 do

4条回答
  •  清歌不尽
    2020-12-31 05:27

    This work for me.

    Install "code" from VSCode commander (Shift + Command + P)

    Search for:

    Shell Command: Install 'code' command in 'PATH'

    Install it.

    after that… run commands on terminal for config git with new editor:

    $ git config --global core.editor "code --wait"
    $ git config --global -e
    

提交回复
热议问题