Sublime Text3常用插件

Package Control

插件管理器。安裝后可方便安裝其他插件。
安裝方式:官網(wǎng)鏈接>https://packagecontrol.io/installation

翻譯:

  1. 最簡(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)
  1. 手動(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

切換主題

  1. 快捷鍵:command + shift + P
  2. 在輸入框中輸入:UI 。
  3. 點(diǎn)擊Select Color Scheme。
  4. 在顯示的列表中,選擇一個(gè)自己喜歡的主題。

Html代碼格式化插件 - Sublime-HTMLPrettify

  1. Through Sublime Package Manager

    • Ctrl+Shift+P or Cmd+Shift+P in Linux/Windows/OS X
    • type install, select Package Control: Install Package
    • type prettify, select HTML-CSS-JS Prettify
  2. 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

  1. 綁定快捷鍵
    Preferences -> Key Bindings
[
    { "keys": ["ctrl+command+j"], "command": "pretty_json" },
]

快捷?。篶ontrol+command+J

  1. 設(shè)置顯示樣式
    comand + shift +p ,輸入 settings, 點(diǎn)擊 pretty json settings
{
    "indent": 2,
    "keep_arrays_single_line": true,
    "brace_newline":false
}
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容