sublime常用配置

來源:互聯網
上載者:User

標籤:cto   control   dbf   port   images   node js   default   block   time   

  • 常用外掛程式:
    sftp                            ssh上傳/下載工具xdebug                          php代碼調試工具emmet                           <tab>鍵快速補全sublimelinter                   提示代碼錯誤docblock                        格式化注釋package control                 外掛程式安裝庫bracket highlighter             用於匹配括弧converttoutf8                   將檔案用utf8的模式開啟      chineselocalization             漢化外掛程式less                            less文法高亮jsx                             jsx文法高亮less2Css                        less轉cssautofilename                    檔案路徑自動提示
  • 啟用:
    Michael BarnesSingle User LicenseEA7E-8213858A353C41 872A0D5C DF9B2950 AFF6F667C458EA6D 8EA3C286 98D1D650 131A97ABAA919AEC EF20E143 B361B1E7 4C8B7F04B085E65E 2F5F5360 8489D422 FB8FC1AA93F6323C FD7F7544 3F39C318 D95E6480FCCC7561 8A4A1741 68FA4223 ADCEDE07200C25BE DBBC4855 C4CFB774 C5EC138C0FEC1CEF D9DCECEC D3A5DAD1 01316C36
  • 取消自動升級:
    "update_check":false
  • 自動換行:
    "word_wrap": true
  • 縮排4個空格:
    "tab_size": 4
  • 行結束符(unix):
    "default_line_ending": "unix"
  • 設定檔:
    {"color_scheme": "Packages/Color Scheme - Default/IDLE.tmTheme","update_check":false,"word_wrap": true,"tab_size": 4,"font_size": 14,"default_line_ending": "unix"}
  • 編譯php:
    a. 將php程式設定到環境變數中,以使在任意目錄下都可執行php命令
    b. 建立php編譯系統:

    c. 建立一個,預設的內容是:
    {"shell_cmd": "make"}

    d. 修改為:

    {"cmd": ["php", "$file"],"file_regex": "php$","selector":"source.php"}

    e. 儲存在預設的目錄下即可,注意修改檔案名稱為 php.sublime-build
    f. 重啟sublime text,就可以用Ctrl+B來編譯.php檔案了

  • 編譯js:
    a. 下載node js
    b. 同php一樣,建立一個檔案
    c. 建立一個,預設的內容是:
    {"shell_cmd": "make"}

    d. 修改為:

    {"cmd": ["node", "$file"],"selector": "source.js"}
  • 使用sftp上傳/下載檔案:
    a. 下載:


    b. 配置:
    b-1. 建立設定檔:

    b-2. 設定檔內容:
    {"type": "sftp","save_before_upload": true,"upload_on_save": true,"sync_down_on_open": false,"sync_skip_deletes": false,"sync_same_age": true,"confirm_downloads": false,"confirm_sync": true,"confirm_overwrite_newer": false,"host": "172.20.10.11","user": "root","password": "123456","port": "22","remote_path": "/var/www/html/","ignore_regexes": ["\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json","sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/","\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"],"connect_timeout": 30,}


    c. 測試:
    c-1. 建立檔案:



    c-2. 儲存:

    d. 測試:

  • sublime常用配置

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.