前提是你电脑里已装有SVN,这时只是设置快捷调用SVN.
1、通过快捷键 ctrl+` 或者 View > Show Console 菜单打开控制台
2、粘贴对应版本的代码后回车安装
适用于 Sublime Text 3:
import urllib.request,os;pf=‘Package Control.sublime-package‘;ipp=sublime.installed_packages_path();urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler()));open(os.path.join(ipp,pf),‘wb‘).write(urllib.request.urlopen(‘http://sublime.wbond.net/‘+pf.replace(‘ ‘,‘ ‘)).read())
适用于 Sublime Text 2:
import urllib2,os;pf=‘Package Control.sublime-package‘;ipp=sublime.installed_packages_path();os.makedirs(ipp)ifnotos.path.exists(ipp)elseNone;urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler()));open(os.path.join(ipp,pf),‘wb‘).write(urllib2.urlopen(‘http://sublime.wbond.net/‘+pf.replace(‘ ‘,‘ ‘)).read());print(‘Please restart Sublime Text to finish installation‘)
3.sublime Text2/3 SVN插件 点击下载
4.点击设置->浏览程序包
5.新建SNVN文件,将下载好的SVN包复制到新建Sublime Text 3\Packages\SVN\里面即可.
成功之后即可看到SNV快捷方式.