Sublime text代碼補全插件(支持Javascript、JQuery、Bootstrap框架)

Sublime text代碼補全插件(支持Javascript、JQuery、Bootstrap框架)

插件名稱:javascript-API-Completionsjavascript

支持Javascript、JQuery、Twitter Bootstrap框架、HTML5標籤屬性提示的插件,是少數支持sublime text 3的後綴提示的插件,HTML5標籤提示sublime text 3自帶,不過JQuery提示仍是頗有用處的,也可設置要提示的語言。php

下載地址:https://github.com/Pleasurazy/Sublime-JavaScript-API-Completionscss

下載完成解壓,將文件夾放在編輯器的插件目錄便可(首選項---瀏覽插件)完成安裝。html

以下圖:java

將下面代碼粘貼進去,重啓編輯器便可:react

 

{  
  // --------------------  
  // sublime-better-completions-Package (sbc package)  
  // --------------------  
  // API files is contains the *keyword* such as `html`, `jquery`, `myglossary` with lowercase as filename `sbc-api-${filename}.sublime-settings` place in `/packages/User/` (your own) or `/packages/${this-package}/sublime-completions/` (package build-in).  
  // After you enable, disable or added new your own completions, you might need restart your Sublime Text Editor.  
  //  
  // Your own setting file `sbc-setting.sublime-settings` need to place in `/packages/User/` and contains all your api setting property that you want to enable.  
  //  
  // --------------------  
  // APIs Setup  
  // --------------------  
  // `true` means enable it.  
  // `false` means disable it.  
  "completion_active_list": {  
    // build-in completions  
    "css-properties": true,  
    "gruntjs-plugins": true,  
    "html": false,  
    "lodash": true,  
    "javascript": true,  
    "jquery": true,  
    "jquery-sq": true, // Single Quote  
    "php": true,  
    "phpci": true,  
    "sql": true,  
    "twitter-bootstrap": true,  
    "twitter-bootstrap-less-variables": true,  
    "twitter-bootstrap3": true,  
    "underscorejs": true,  
    "react": true,  
  
    // Your own completions?  
    // ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/sbc-api-my-angularjs.sublime-settings  
    "my-angularjs": true,  
  
    // ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/sbc-api-my-glossary.sublime-settings  
    "my-glossary": true,  
  
    // ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/sbc-api-my-html.sublime-settings  
    "my-html": true,  
  
    // ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/sbc-api-my-javascript.sublime-settings  
    "my-javascript": false  
  }  
}  
能夠自定義選擇:false爲不啓用,true爲啓用。
相關文章
相關標籤/搜索