notepad++ 无法在 Git Bash 中工作

Maa*_*aai 2 git notepad++

我使用的是 windows 7 64 位操作系统,我正在尝试将 notepadd++ 设置为 Git Bash 中的 tex teditor

这是我已经做过的

  1. git config --global core.editor "\"C:/Program Files (x86)/Notepad++/notepad++.exe\" -multiInst -notabbar -nosession -noPlugin"

  2. 在我的系统变量中设置notepadd++

现在,当我尝试编辑文件(即 notepad++ myfile)时,它说找不到命令。即使我尝试打开记事本++,它也说找不到命令

我对 Git 完全陌生,我想我完全迷失在我正在做的事情中。我基本上想要的是让我的 notepad++ 与 Git Bash 一起工作

请帮忙。谢谢!

Von*_*onC 6

您可以使用双引号和单引号的组合,如“如何设置编辑器以在 Windows 上使用 Git? ”:

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
Run Code Online (Sandbox Code Playgroud)

另请注意在本例中使用“ /”而不是“ \”。