Using other editor with TortoiseHg

前端 未结 2 566
说谎
说谎 2021-02-05 12:20

I\'m trying to use other editor with TortoiseHG, instead of (Windows) Notepad.

I have tried the solutions mentioned here:

Mercurial and Notepad++ Integration

2条回答
  •  礼貌的吻别
    2021-02-05 12:38

    You'll kick yourself...

    Change:

    [tortoisehg] 
    editor = C:\Program Files (x86)\Notepad++\Notepad++.exe ["$FILE" -n$LINENUM] -multiInst -nosession
    

    To:

    [tortoisehg]
    editor = "C:\Program Files (x86)\Notepad++\Notepad++.exe" ["$FILE" -n$LINENUM] -multiInst -nosession
    

    Note the additional quotes around the path to Notepad++.
    I'm guessing it's exactly the same issue with your path to Sublime Text too as both paths contain a space.

提交回复
热议问题