Integration of Notepad++ with Git

Text Editor: It is a software program which allows the user to input and edits their text definition.

Examples: Notepad, Notepad++, Wordpad, Komodo.

Well, before we start with Git operations, first install some good text editor for our operating system.

Where Notepad++ works well with our windows and also you are going to learn how to make Notepad++ accessible to command prompt and Gitbash and finally we will configure Notepad++ with Git.

Now I will show you how to download Notepad++ step by step as follows:

  • Select your preferred browser and navigate to the page
  • Once notepad++ has loaded in the system, click on the Download button on the left side of the page.
  • Once the installer has finished downloading open and click on the Run button.
  • Then, it will ask for your preferred language, select English.
  • Click Next on the license agreement page.
  • Once you go through the license agreement just click on I Agree.
  • Choose the default installation location and click Next.
  • Now click on the Install button to install Notepad++.
  • And finally, click on Finish, now your Notepad++ has installed in your OS.
  • Close your browser and check Notepad++ icon on your system desktop.

Configure P4merge with Git

Text Editor Configuration with Git

Now we are going to configure Notepad++ to run from our command environment using Gitbash.

Now Open Gitbash and type Notepad++. It will return as command not found, hence exit from the Gitbash.

The first step is to find out where your Notepad++ has installed in your system. Select the Notepad++ application and click on .exe file.

  • Copy the Address by clicking on the address bar.
  • Click on Mycomputer or ThisPc and right click select Properties.
  • It will take you to the control panel page, then select environment variables under Advanced system settings.
  • Now it will be directed to Environment variables dialog box, it contains two parts as user variables and system variables now select path under system variables and click on the editor.
  • Now enter the copied Notepad++ file address in the variable value by separating the address through semicolon and click on ok then close remaining dialog box.
  • Now you can verify by typing Notepad++ and press enter if it is configured successfully you will be able to see a Notepad++ page on the screen.

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions