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 https://notepad-plus-plus.org
  • Once notepad++ has loaded in the system, click on the Download button on the left side of the page.
    download-page-notepad
  • Once the installer has finished downloading open and click on the Run button.
  • Then, it will ask for your preferred language, select English.
    notepad-select-languge
  • Click Next on the license agreement page.
    notepad-click-next
  • Once you go through the license agreement just click on I Agree.
  • Choose the default installation location and click Next.
    notepad-choose-install-location
  • Now click on the Install button to install Notepad++.
    notepad-click-install
  • And finally, click on Finish, now your Notepad++ has installed in your OS.
    notepad-click-finish
  • 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.
notepad-file-location

  • Copy the Address by clicking on the address bar.
    notepad-copy-address
  • Click on Mycomputer or ThisPc and right click select Properties.
    notepad-select-properties
  • It will take you to the control panel page, then select environment variables under Advanced system settings.
    notepad-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.
    notepad-select-path
  • 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.
    notepad-save-path
  • 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.
    notepad-sucess

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions