Invoking notepad++ from Git Bash

后端 未结 14 2260
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 16:01

I am using msysgit in Windows 7. How do I invoke notepad++ from Git Bash, like we do it with our default notepad?

Like for example

name@usename notepad textfile.t

相关标签:
14条回答
  • 2021-01-31 16:44
    1. Open Git Bash on your system/project and type the following command in the Git Bash

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

    2. Press Enter and if no error occurs, you have successfully set up Notepad++ as your text editor in Git Bash. You can also check it by typing the command

      git config --global core.editor

    0 讨论(0)
  • 2021-01-31 16:49

    An alias is used with the git command, so with the one in your OP, you should be able to run git notepad. I don't think this is quite what you want, though. If you correctly added notepad++ to your PATH variable, then you should be able to just do notepad++. You can check this by running which notepad++. If this doesn't give the full path to notepad++, then the PATH isn't set correctly.

    0 讨论(0)
提交回复
热议问题