Sublime Text3 插件安裝

 1.官網下載https://www.sublimetext.com/3

二.安裝Package Control

因爲直接打開文件有很多亂碼,所以搜了下要安裝編譯插件。。。

          Preferences->Browse packages打開文件夾>返回上一層>Installed Packages把下載的文件複製進去

  • 安裝方法2:快捷鍵ctrl+` 打開console,把下面的代碼複製進去回車

          sublime text2

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 text3

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 text3 ,  Preferences下面出現Package Control就是安裝成功。

三.安裝插件

  1. 按下Ctrl+Shift+P調出命令面板
  2. 輸入install 調出 Package Control:Install Package 選項並回車,然後在列表中選中要安裝的插件。

四.常用插件

  • GBK to UTF8

        將文件編碼從GBK轉黃成UTF8,快捷鍵Ctrl+Shift+C

...後期用的時候補充

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章