Invoking notepad++ from Git Bash

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

提交回复
热议问题