Invoking notepad++ from Git Bash

后端 未结 14 2491
隐瞒了意图╮
隐瞒了意图╮ 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:22

    This config works for me

    editor = \"/c/Program Files (x86)/Notepad++/Notepad++.exe\" -multiInst
    

    The multiInst argument is just to make it friendlier for interactive edits where you already have notepad++ open. (If Notepad++ is already open and you run the process again, it adds the file to your existing instance and then exits immediately, which git takes to mean you've finished)

提交回复
热议问题