让Editplus和SVN集成

很多人用Editplus, 但是修改了文件后,需要切换到文件目录,点击鼠标右键使用TortoiseSVN的提交菜单项来提交,需要增加很多鼠标点击和确认的操作,对于频繁修改的文件来说,非常麻烦,今天研究了一番,找到个好的解决办法:

先下载 http://www.sliksvn.com/pub/Slik-Subversion-1.5.2-win32.msi 安装上,这是一个在windows上提供标准svn命令行的工具,使用默认安装到C盘的相应目录下即可。

然后把我下面的文件内容复制后保存为tool.ini,存放在editplus的安装目录下。

启动editplus,打开一个svn里面的文件,修改一下,然后按 CTRL+1 即可方便的提交, 按 CTRL + 2 即可更新当前文件,是不是非常方便? 呵呵,绝对的原创内容!
tool.ini文件内容:

[coolcode]
[Tools\0]
Count=2
Text=Group 1
[Tools\0\0]
Text=SVN commit
Command=C:\Program Files\SlikSvn\bin\svn.exe
Argument=commit -m “” $(FilePath) –non-interactive
InitDir=$(FileDir)
RedirOut=1
Stdin=0
Plugin=0
Save=1
Pattern=0
Pattern Regex=
Close=0
Help=0
[Tools\1]
Count=0
Text=Group 2
[Tools\2]
Count=0
Text=Group 3
[Tools\3]
Count=0
Text=Group 4
[Tools\4]
Count=0
Text=Group 5
[Tools\5]
Count=0
Text=Group 6
[Tools\6]
Count=0
Text=Group 7
[Tools\7]
Count=0
Text=Group 8
[Tools\8]
Count=0
Text=Group 9
[Tools\9]
Count=0
Text=Group 10
[Tools\0\1]
Text=SVN update
Command=C:\Program Files\SlikSvn\bin\svn.exe
Argument=update $(FilePath)
InitDir=$(FileDir)
RedirOut=1
Stdin=0
Plugin=0
Save=1
Pattern=0
Pattern Regex=
Close=0
Help=0
[/coolcode]

Category: 其他技术  Tags: ,
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
17 Responses
  1. heng says:

    o(∩_∩)o… 学到了

  2. kevin says:

    最近比较忙,好几天没来了,看到有更新了几篇,先提前祝Michael及所有的博友中秋快乐。

  3. cross stitch says:

    好久没来,谢谢,学习.

  4. Michael says:

    谢谢三位朋友的捧场,欢迎常来,保持联络 🙂

  5. xiaosa says:

    – – 我试了,貌似不行? 不知啥原因……
    btw:我同时也装了TortoiseSVN

    ———- SVN-Commit ———-

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application’s support team for more information.

    输出完毕 (耗时 9 秒)

  6. xiaosa says:

    呵..找到原因了。看来还需要小小改进…

    在 $(FilePath) 加上引号… “$(FilePath)” ,否则
    当遇到提交地址中有空格时命令行就会断开,就挂了…

  7. Pingback: 吃饭去
  8. 短信群发 says:

    试试看哦

  9. tankuan says:

    完成后,重新启动,编辑完成后,按ctrl+1,没有什么反应,不知为什么,编辑的是SVN中的文件啊。谢谢!!

  10. 爱蝌蚪 says:

    不错,难道见到editplus和SVN结合的文章,收藏之

  11. 关键是SVN命令的使用

  12. 安卓伴侣 says:

    editplus的自定义命令非常强大,别说集成SVN,集成MS SQLServer也不是问题

  13. ifans says:

    非常好,感谢分享。原来editplus也可以这样用的唆……

  14. 很不错,thanks for sharing!

  15. 新号外 says:

    支持原创。。。。。

  16. 怿祺 says:

    那这样 editplus 是不是就可以取代Myeclipse了?

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image