sublime text 前段配置

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   os   使用   ar   for   

1、 安裝 Packages

  ctrl + `  (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())

 2、Preferences > Settings -User基本的配置:

{    "auto_indent": true,    "auto_match_enabled": false,    "color_scheme": "Packages/User/LAZY (SL).tmTheme",    "detect_indentation": true,    "draw_centered": false,    "draw_minimap_border": true,    "draw_white_space": "selection",    "font_options":    [        "subpixel_antialias"    ],    "font_size": 14.0,    "gutter": true,    "highlight_line": true,    "ignored_packages":    [        "Vintage",        "Markdown"    ],    "line_numbers": true,    "line_padding_bottom": 0,    "line_padding_top": 2,    "match_brackets": true,    "scroll_past_end": true,    "tab_size": 4,    "update_check": false,    "use_tab_stops": true,    "word_wrap": true,}

3、一些基本的外掛程式:

  • Emmet:必裝外掛程式。
  • FileHeader:自動給檔案加檔案的注釋資訊。
  • TortoiseSVN:結合TortoiseSVN用戶端使用。
  • FileDiffs:檔案對比外掛程式。
  • BracketHighlighter :高亮顯示匹配的括弧、引號和標籤
  • TrailingSpaces: 高亮顯示多餘的空格和Tab
  • jQuery:必裝外掛程式
  • Alignment :等號對齊
  • ZenCoding:不得不用的一款前端開發方面的外掛程式,Write less , show more.安裝後可直接使用,Tab鍵觸發,Alt+Shift+W是個代碼機器。
  • Alignment:代碼對齊,如寫幾個變數,選中這幾行,Ctrl+Alt+A,哇,齊了。
  • Prefixr:寫 CSS可自動添加 -webkit 等私人詞綴,Ctrl+Alt+X觸發。
  • Tag:Html格式化,右鍵Auto-Format Tags on Ducument。
  • Clipboard History:剪貼簿記錄,顯示更多曆史複製,Ctrl+Shift+V觸發。
  • SideBarEnhancements:側欄右鍵功能增強,非常實用
  • Theme – Soda:完美的編碼主題,用過的都說好,Setting user裡面添加”theme”: “Soda Dark.sublime-theme”
  • GBK to UTF8:將檔案編碼從GBK轉黃成UTF8,菜單 – File裡面找
  • SFTP:直接編輯 FTP 或 SFTP 伺服器上的檔案,絕對FTP浮雲
  • WordPress:整合一些WordPress的函數,對於像我這種經常要寫WP模版和外掛程式的人特別有用
  • PHPTidy:整理排版PHP代碼
  • YUI Compressor:壓縮JS和CSS檔案

 

  • CodeFormatter:代碼格式化

  註:可能是QQ和這個衝突了,自行設定了一下快速鍵就可以用了。

  開啟 Preferences=>Package Settings=>Alignment=>Key Bindding - User

  然後寫入:

[    { "keys": ["ctrl+alt+f"], "command": "alignment" }]

 

sublime text 前段配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.