配置Sublime text 3(ubuntu)
点击Preferences->Settings User,修改配置文件如下:
{"color_scheme":"Packages/ColorScheme-Default/Monokai.tmTheme","fallback_encoding":"UTF-8","font_size":14,"tab_size":2,"translate_tabs_to_spaces":true,"word_wrap":true,"trim_trailing_white_space_on_save":true,"rulers":[81],"ensure_newline_at_eof_on_save":true,"shift_tab_unindent":true,"wrap_width":80}
安装Package Control:
按下ctrl+`后,在弹出的命令窗口中输入下面命令即可:importurllib.request,os,hashlib;h='2deb499853c4371624f5a07e27c334aa'+'bf8c4e67d14fb0525ba4f89698a6d7e1';pf='PackageControl.sublime-package';ipp=sublime.installed_packages_path();urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler()));by=urllib.request.urlopen('http://packagecontrol.io/'+pf.replace('','%20')).read();dh=hashlib.sha256(by).hexdigest();print('Errorvalidatingdownload(got%sinsteadof%s),pleasetrymanualinstall'%(dh,h))ifdh!=helseopen(os.path.join(ipp,pf),'wb').write(by)<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<sublime_text2.02importurllib2,os;pf='PackageControl.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp)ifnotos.path.exists(ipp)elseNone;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('PleaserestartSublimeTexttofinishinstallation')<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
安装成功后,点击菜单Preferences->Package Settings->Package Control->Settings-User,修改配置文件如下,保存以后,选择Package Control->Install Package,将会自动下载。
{"installed_packages":["Alignment","BracketHighlighter","ColorPicker","CompactExpandCss","CSScombJS","EmmetCssSnippets","Hex-to-RGBA","HTML5","JsFormat","PackageControl","RailsDeveloperSnippets","RubyonRailssnippets","RubyTest","SublimeTmpl","Tag","Terminal","Tradsim"]}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。