Package Control

介紹與安裝

作為sublime外掛安裝與管理中心,想安裝任何外掛之前,一定要先安裝package control

首先先叫出sublime text console(control+`)

貼上安裝程式碼,按下enter安裝

安裝語法
Sublime text 2
import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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 3
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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)

sublime console:

使用方法

  • mac開啟方式:command+shift+p

  • windows開啟方式:control+shift+p

簡單指令介紹

  • install package:安裝外掛,打ins就找得到
  • list package:安裝的外掛清單,打list就找得到
  • remove package:解除安裝的外掛
  • 其實像是安裝的外掛相關的指令等等都會在這邊,可以慢慢看

results matching ""

    No results matching ""