点击Preferences->Settings User,修改配置文件如下:
{ "color_scheme": "Packages/Color Scheme - 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 + `后,在弹出的命令窗口中输入下面命令即可: import urllib.request,os,hashlib; h = '2deb499853c4371624f5a07e27c334aa' + 'bf8c4e67d14fb0525ba4f89698a6d7e1'; pf = 'Package Control.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('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< sublime_text 2.02 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') <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
安装成功后,点击菜单Preferences->Package Settings->Package Control->Settings-User,修改配置文件如下,保存以后,选择Package Control->Install Package,将会自动下载。
{ "installed_packages": [ "Alignment", "BracketHighlighter", "ColorPicker", "CompactExpandCss", "CSScomb JS", "Emmet Css Snippets", "Hex-to-RGBA", "HTML5", "JsFormat", "Package Control", "Rails Developer Snippets", "Ruby on Rails snippets", "RubyTest", "SublimeTmpl", "Tag", "Terminal", "Tradsim" ] }
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。