Sublime Text 3配置,經常使用插件

Ctrl+`或View->Show Console
安裝插件管理:前端

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(' ','%20')).read())
 
Preferences下多了Package Settings和Package Control菜單python

 

Sublime Text 安裝Package Control

輸入以下命令git

1
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(' ','%20')).read())

提示以下錯誤github

1
Error loading /Users/xxx/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package: File is not a zip file

此時須要參考Package Control輸入最新的安裝命令便可解決該問題sublime-text

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)ui

 

ctrl+shift+p
插件:url

1.ChineseLocalizations中文版spa

2.ConvertToUTF8亂碼UTF-8.net

3.Golang Build插件

4.Nodejs

5.PyV8

6.Terminal打開終端

7.Emmet前端

8.AutoFileName

9.ColorPicker調色板

10.JsFormat

11.DocBlockr註釋

 

Ubuntu18.04.01:

完美解決Sublime沒法輸入中文問題
sudo apt-get update && sudo apt-get upgrade
下載https://github.com/lyfeyaj/sublime-text-imfix.git
解壓
cd sublime-text-imfix
./sublime-imfix

 

python編譯

Anaconda插件:亂碼

{      "cmd": ["D:/Program Files (x86)/Python35-32/python.exe","-u","$file"],     "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",      "selector": "source.python",     "env": {"PYTHONIOENCODING": "utf8"}, }  

相關文章
相關標籤/搜索