How to run and edit a file from Git using Notepad ++?

I installed Notepad ++ as my default editor, as in this section: How to configure the editor to work with Git on Windows?

using this command:

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

Now I am working on a Ruby on Rails tutorial. In one step, the author uses the command: $ mate README.markdown to launch its TextMate editor and edit the readme file.

My question is: now that I have installed Notepad ++ as my default editor, what is the equivalent command that I should use to run Notepad ++ and edit the file?

Note. I start with this Git and Ruby on Rails. Please calm down! Thanks in advance.

+4
source share
2 answers
 C:/Program Files/Notepad++/notepad++.exe README.markdown 

And since you probably want to use notepad ++ from the command line, you can change your PATH to include its root, so you do not need to write the full path every time.

+4
source

Add notepad ++. exe into the Windows environment variable (all the way), this option is on the computer, right-click, change the environment settings depending on the environment. After running the promp command, just do: notepad ++ markdown.README

You can also just use the whole path to notepad.exe every time, but it is getting old, just learn how to edit your environment variables in windows.

+1
source

Source: https://habr.com/ru/post/1336739/


All Articles