美文网首页
Sublime Text3安装与ThinkPHP插件安装

Sublime Text3安装与ThinkPHP插件安装

作者: 大连巴掌 | 来源:发表于2018-12-18 14:30 被阅读0次

    常用网址

    安装Package Control
    都说这是个好东西,那咱也装一个。
    菜单:View->Show Console。
    Text 3 粘贴下面的代码:
    import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
    Text 2 粘贴下面的代码:
    import urllib2,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
    回车看它状态栏上的文件变回原来的样子,那就是下载完成啦。我试了好几次才成功。
    重启Sublime Text ,打开菜单Preferences中有 Package Control 说明安装成功。

    安装ThinkPHP插件
    菜单Preferences-> Package Control ->Add Repository
    输入这个网址 https://github.com/yangweijie/SublimeThinkPHP5.0.git 并回车。
    下面命令运行完成后进行下面操作。
    菜单Preferences-> Package Control ->Install Package。这个能慢点。
    在弹出的搜索框中输入 think 会出现两个选项( Thinkphp 和 Sublime ThinkPHP5.0),选择5.0那个。

    相关文章

      网友评论

          本文标题:Sublime Text3安装与ThinkPHP插件安装

          本文链接:https://www.haomeiwen.com/subject/prtlkqtx.html