Using other editor with TortoiseHg

前端 未结 2 565
说谎
说谎 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:27

    Strange editor = C:\Program Files (x86)\Notepad++\Notepad++.exe without double quotes worked for me

    0 讨论(0)
  • 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.

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