Skip to content
Home » How to Setup an editor on Git

How to Setup an editor on Git

If you want to use a different text editor on a Windows machine, you must specify the complete path to its executable file. This varies based on how your editor is packaged.
In the case of Notepad++, a popular programming editor, you’ll probably want to use the 32-bit version because the 64-bit version doesn’t support all plug-ins at the time of writing. Follow the below command to setup an editor on Git with Windows.

git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe'
-multiInst -notabbar -nosession -noPlugin"

If you using on 64-bit machine then use:

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

If you want to setup an editor like emacs then use:

git config --global core.editor emacs

Also Read:

How to Install Git