Associating text editors with Git
In this article
Using Visual Studio Code as your editor
InstallVisual Studio Code (VS Code). For more information, seeSetting up VS Code in the VS Code documentation.
OpenTerminalTerminalGit Bash.
Type this command:
git config --global core.editor "code --wait"
InstallVisual Studio Code (VS Code). For more information, seeSetting up VS Code in the VS Code documentation.
OpenTerminalTerminalGit Bash.
Type this command:
git config --global core.editor "code --wait"
InstallVisual Studio Code (VS Code). For more information, seeSetting up VS Code in the VS Code documentation.
OpenTerminalTerminalGit Bash.
Type this command:
git config --global core.editor "code --wait"
Using Sublime Text as your editor
InstallSublime Text. For more information, seeInstallation in the Sublime Text documentation.
OpenTerminalTerminalGit Bash.
Type this command:
git config --global core.editor "subl -n -w"
InstallSublime Text. For more information, seeInstallation in the Sublime Text documentation.
OpenTerminalTerminalGit Bash.
Type this command:
git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
InstallSublime Text. For more information, seeInstallation in the Sublime Text documentation.
OpenTerminalTerminalGit Bash.
Type this command:
git config --global core.editor "subl -n -w"
Using Notepad++ as your editor
Install Notepad++ fromhttps://notepad-plus-plus.org/. For more information, seeGetting started in the Notepad++ documentation.
OpenTerminalTerminalGit Bash.
Type this command:
git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"