Package Control
插件管理器。安裝后可方便安裝其他插件。
安裝方式:官網(wǎng)鏈接>https://packagecontrol.io/installation
翻譯:
- 最簡(jiǎn)單的方式:
control + ` 或者 ctrl + ` 打開控制臺(tái),Submlime 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)
- 手動(dòng)安裝
- Click the Preferences > Browse Packages… menu
- Browse up a folder and then into the Installed Packages/ folder
- Download Package Control.sublime-package and copy it into the
- Installed Packages/ directory
- Restart Sublime Text
翻譯:
- 單擊首選項(xiàng)>瀏覽包...菜單
- 瀏覽文件夾,然后進(jìn)入Installed Packages /文件夾
- 下載包Control.sublime-package并將其復(fù)制到Installed Packages /目錄中
- 重新啟動(dòng)Sublime Text
切換主題
- 快捷鍵:
command + shift + P - 在輸入框中輸入:UI 。
- 點(diǎn)擊Select Color Scheme。
- 在顯示的列表中,選擇一個(gè)自己喜歡的主題。
Html代碼格式化插件 - Sublime-HTMLPrettify
-
Through Sublime Package Manager
-
Ctrl+Shift+PorCmd+Shift+Pin Linux/Windows/OS X - type
install, selectPackage Control: Install Package - type
prettify, selectHTML-CSS-JS Prettify
-
-
Manually
Make sure you use the right Sublime Text folder. For example, on OS X, packages for version 2 are in
~/Library/Application\ Support/Sublime\ Text\ 2, while version 3 is labeled~/Library/Application\ Support/Sublime\ Text\ 3.Mac
git clone https://github.com/victorporof/Sublime-HTMLPrettify.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Sublime-HTMLPrettify
Python代碼格式化插件 - AutoPEP8
快捷鍵:control+shift+R
編碼問題
https://github.com/seanliang/ConvertToUTF8
https://github.com/seanliang/Codecs33
代碼智能自動(dòng)完成插件
SublimeCodeIntel
運(yùn)行Python代碼
SublimeREPL
格式化Json數(shù)據(jù)
PrettyJSON
- 綁定快捷鍵
Preferences -> Key Bindings
[
{ "keys": ["ctrl+command+j"], "command": "pretty_json" },
]
快捷?。篶ontrol+command+J
- 設(shè)置顯示樣式
comand + shift +p ,輸入 settings, 點(diǎn)擊 pretty json settings
{
"indent": 2,
"keep_arrays_single_line": true,
"brace_newline":false
}