Skip to main content

How to Configure Notepad++ and Notepad as Default Editors in Git for Windows: A simple Guide

How to Configure and Use Notepad++ and Notepad in Git for Windows

If you're using Git for Windows and prefer to use Notepad++ or Notepad as your default editor instead of the default Git editor, this guide will help you configure it.

Configuring Notepad++ in Git for Windows

To configure Notepad++ in Git for Windows, you'll need to know the path to your Notepad++ installation (e.g., C:/Program Files/Notepad++). Once you have the path, you can run the following command:

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

This command will set Notepad++ as your default editor in Git for Windows.

Configuring Notepad in Git for Windows

To configure Notepad in Git for Windows, you can run the following command:

git config core.editor "'C:/windows/system32/notepad.exe' -multiInst -notabbar -nosession -noPlugin "

This command will set Notepad as your default editor in Git for Windows.

By following these steps, you can configure and use your preferred editor in Git for Windows, which can help streamline your workflow and improve your productivity.

Comments