Skip to content

Instantly share code, notes, and snippets.

@psiborg
Created January 6, 2012 09:13
Show Gist options
  • Select an option

  • Save psiborg/1569819 to your computer and use it in GitHub Desktop.

Select an option

Save psiborg/1569819 to your computer and use it in GitHub Desktop.
Sublime Text 2 - Settings
// Path: Packages/User/Base File.sublime-settings
{
"color_scheme": "Packages/Textmate/HelvectorLight.tmTheme",
"font_face": "Meslo LG M DZ",
"font_size": 8,
//"draw_white_space": "all",
"trim_trailing_white_space_on_save": true
}
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'
// Path: Packages/User/Global.sublime-settings
{
"ignored_packages":
[
"Vintage",
"SublimeJavaScript",
"PhpBeautifier"
],
"theme": "Soda Dark.sublime-theme"
}
# Path: Packages/JsFormat/jsbeautifier.py
class BeautifierOptions:
def __init__(self):
self.indent_size = 4
self.indent_char = ' '
self.preserve_newlines = True
self.max_preserve_newlines = 10.
self.jslint_happy = True # False (default) | True
self.brace_style = 'end-expand' # collapse (default) | expand | end-expand
self.keep_array_indentation = False
self.indent_level = 0
// Path: Packages/SublimeJavaScript/NodeJSHint.js
// JSHint Options (See jshint.com)
var options = {
"devel": true,
"browser": true
};
# Path: Packages/SublimeBrackets/SublimeBrackets.py
# Customize
#--------------------
# Scope? (Defined in theme files.) ->
# Examples: (keyword/string/number)
CurlyScope = 'entity.name.class'
RoundScope = 'string'
SquareScope = 'keyword'
# Outline? (True/False) ->
CurlyOutline = False
RoundOutline = True
SquareOutline = False
# Icon? (dot/circle/bookmark/cross)
CurlyIcon = 'dot'
RoundIcon = 'bookmark'
SquareIcon = 'dot'
#--------------------
# End Customize
# Path: Packages/SublimeJavaScript/SublimeJavaScript.py
# JSBeautifier Options
indent_size = 4
indent_char = " "
preserve_newlines = True
max_preserve_newlines = 10
jslint_happy = True # False (default) | True
brace_style = "end-expand" # collapse (default) | expand | end-expand
keep_array_indentation = False
eval_code = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment