簡單作點筆記:url
1 import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
3. 重啓Sublime Text 2後在Preference裏啓動Package Control。spa
4. 搜索Tag並安裝。.net
5. 選中須要格式化的代碼,而後在Edit->Tag->Format selected code。code