-
Notifications
You must be signed in to change notification settings - Fork 0
Sublime Text Configuration
Janet Maldonado edited this page Oct 28, 2015
·
6 revisions
https://sublime.wbond.net/installation#st3
Go to View > Console or Ctrl + ` and paste in the console the following:
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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)
Preferences > Package settings > Package control > Settings user
Copy and paste the following configuration and save the file.
{
"installed_packages":
[
"BracketHighlighter",
"Emmet",
"Git",
"GitGutter",
"JsFormat",
"SideBarEnhancements",
"Solarized Color Scheme",
"SublimeLinter-jshint",
"Theme - Spacegray"
],
"repositories":
[
"https://github.com/jdc0589/JsFormat"
]
}
Preferences > Package Settings > JSFormat > Settings User
{
// exposed jsbeautifier options
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 4,
"space_in_paren": false,
"jslint_happy": true,
"brace_style": "collapse",
"keep_array_indentation": false,
"keep_function_indentation": false,
"eval_code": false,
"unescape_strings": false,
"break_chained_methods": false,
"e4x": false,
"wrap_line_length": 0,
"indent_char": " ",
"indent_size": 4,
// jsformat options
"format_on_save": true,
"jsbeautifyrc_files": false,
"translate_tabs_to_spaces": true
}