在TortoiseHg中使用其他编辑器 [英] Using other editor with TortoiseHg

查看:148
本文介绍了在TortoiseHg中使用其他编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将其他编辑器与TortoiseHG一起使用,而不是(Windows)记事本。

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

我尝试了此处提到的解决方案:

I have tried the solutions mentioned here:

Mercurial和Notepad ++集成

此处:

https://bitbucket.org/tortoisehg/thg/wiki/OpenAtLine

但没有结果。右键单击文件并选择编辑本地时,除非我没有设置任何特定的编辑器(然后在记事本中打开文件),否则根本不会打开任何文件。

But no results. When I right-click a file and choose "Edit Local" no file is opened at all, except when I don't set any specific editor (then file is opened in Notepad).

我尝试了不同的编辑器,例如Notepad ++和Sublime Text 2,但没有结果。另外,我尝试使用GUI中的设置更改配置,然后编辑 C:\Users\< my_user> mermerial.ini

I have tried different editors, like Notepad++ and Sublime Text 2, and no result. Also, I tried to change configuration using "Setting" in GUI, and editing "C:\Users\<my_user>\mercurial.ini"

例如,我尝试过:

#### # For Sublime Text 2
[tortoisehg]
editor = C:\Program Files\Sublime Text 2\sublime_text.exe [$FILE:$LINENUM]

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

我在做什么错了?

推荐答案

踢自己...

更改:

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

收件人:

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

注意t

我想这与Sublime Text的路径完全一样,因为两个路径都包含空格。

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.

这篇关于在TortoiseHg中使用其他编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆