通過SublimeCodeIntel設定JavaScript自動補全

來源:互聯網
上載者:User

標籤:時間   ==   ati   php   b2c   port   tools   net   bar   

1、首先安裝SublimeCodeIntel包。

進入sublime,通過Ctrl+Shift+P進入包管理,輸入pci(首字母),選擇Package Contrl:Intall Package,

斷行符號,進入包安裝介面,輸入首字母,選擇SublimeCodeIntel,

斷行符號,安裝,等待安裝完成(需要時間較長)。

2、配置SublimeCodeIntel。

通過路徑Perferences->Package Settings->SublimeCodeIntel->Setting - Defalut開啟設定檔,找到如下配置項:

 

[html] view plain copy 
  1. "codeintel_language_settings": {  
  2.         "Python3": {  
  3.             "python3": "/usr/local/bin/python3.3",  
  4.             "codeintel_scan_extra_dir": [  
  5.                 "/Applications/Sublime Text.app/Contents/MacOS",  
  6.                 "~/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/arch",  
  7.                 "~/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/libs"  
  8.             ],  
  9.             "codeintel_scan_files_in_project": true,  
  10.             "codeintel_selected_catalogs": []  
  11.         },  
  12.         "JavaScript": {  
  13.             "codeintel_scan_extra_dir": [],  
  14.             "codeintel_scan_exclude_dir":["/build/", "/min/"],  
  15.             "codeintel_scan_files_in_project": false,  
  16.             "codeintel_max_recursive_dir_depth": 2,  
  17.             "codeintel_selected_catalogs": ["jQuery"]  
  18.         },  
  19.         "PHP": {  
  20.             "php": "/Applications/MAMP/bin/php/php5.5.3/bin/php",  
  21.             "codeintel_scan_extra_dir": [],  
  22.             "codeintel_scan_files_in_project": true,  
  23.             "codeintel_max_recursive_dir_depth": 15,  
  24.             "codeintel_scan_exclude_dir":["/Applications/MAMP/bin/php/php5.5.3/"]  
  25.         }  
  26.     }  

 

找到"JavaScript"程式碼片段,將

[html] view plain copy 
  1. "codeintel_selected_catalogs": ["jQuery"]  

 

改為:

 

[html] view plain copy 
  1. "codeintel_selected_catalogs": ["JavaScript"]  

儲存。

 

3、關閉重啟Sublime,寫JavaScript代碼,發現自動補全已經生效。

通過SublimeCodeIntel設定JavaScript自動補全

相關文章

聯繫我們

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