需要安裝 SublimeCodeIntel 插件。
安裝方法:
1.前示條件是 sublime text 2 已安裝 package controll。(插件管理器)
安裝 package control 方法:
按 Ctrl + ~ 調出控制台 復制粘貼如下代碼,並回車:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
安裝成功的話 重啟sublime text 2。點擊 Preferences 菜單 會多出兩項 package Settings、package controll
2.安裝SublimeCodeIntel插件:按ctrl+shift+p,輸入install 回車,輸入 SublimeCodeIntel 回車即可完成安裝。
提示:
1.安裝的過程中,左下角會提示。。。等一會就安裝好了。
2.在開發過程中 右下角會有 Plain Text 字樣,點擊彈出開發語言列表,選擇對應開發語言,就會有相應代碼補全。
例如:我開發網頁 點擊選中切換 HTML
