Sublime Text 3
  • 3,423 views,
  • 2017-07-21,
  • 上傳者: Kuann Hung,
  •  0
9df87d46bb58e7ad9c47574a84ae05be.jpg
步驟
1.
安裝 Package Control
 
按下 Ctrl + ` ,在 console 中根據版本輸入以下命令就可以自動安裝了
 
Sublime 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)
Sublime 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')
2.
Build System
 
Path: C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Packages\User\php-build.sublime-build
{
    "cmd": ["C:\\php\\php.exe", "-l", "$file"],
    "file_regex": "php$"
}
3.
Pretty JSON
透過 Package Control 搜尋 Pretty JSON 即可安裝。快速鍵為 Ctrl + Alt + J
4.
Ubuntu 安裝 
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Facebook 討論區載入中...
資料夾 :
發表時間 :
2017-07-21 12:22:00
觀看數 :
3,423
發表人 :
Kuann Hung
部門 :
老洪的 IT 學習系統
QR Code :