How to change my git default editor to vs code

In this article let’s discuss about How to change my git default editor to vs code. Let’s go through the following methods without any delay.

Method 1:

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

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

git config --global core.editor code

Hope the above solution works.

Realted Posts : How to chown directory