Skip to content

Instantly share code, notes, and snippets.

@electricg
Last active October 10, 2015 19:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electricg/3742066 to your computer and use it in GitHub Desktop.
Save electricg/3742066 to your computer and use it in GitHub Desktop.
SublimeText2 - my User settings
{
"cmd": ["cd '$project_path'; compass watch"],
"working_dir": "$packages/Compass",
"selector": "source.sass",
"shell": "true",
"windows":
{
"cmd": ["compasswatch.bat", "$project_path"]
},
"osx":
{
"path": "/Users/electric_g/.gem/ruby/1.8/bin:$PATH"
}
}
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
//"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"theme": "Cobalt2.sublime-theme",
"font_face": "Consolas",
"font_size": 14.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage",
"SublimeOnSaveBuild"
],
"rulers":
[
80
],
"word_wrap": true
}
// script build for SASS debug & compact
// for osx (Mountain Lion) I had to change the cmd parameter
// while the path is for my local gem installed through "gem install --user-install --no-ri --no-rdoc sass"
// as per http://www.binarytides.com/quick-tip-installing-ruby-gems-in-the-users-home-directory/
// to avoid the "You don't have write permissions into the /Library/Ruby/Gems/1.8 directory." error
{
"cmd": ["sass", "--update", "--sourcemap", "$file:${file_path}/${file_base_name}.debug.css", "--style", "expanded", "&", "sass", "--update", "$file:${file_path}/${file_base_name}.min.css", "--style", "compact"],
"selector": "source.sass",
"line_regex": "Line ([0-9]+):",
"shell": "true",
"osx":
{
"cmd": ["sass --update --sourcemap $file:${file_path}/${file_base_name}.debug.css --style expanded & sass --update $file:${file_path}/${file_base_name}.min.css --style compact"],
"path": "/Users/electric_g/.gem/ruby/1.8/bin:$PATH"
}
}
// windows version
{
"sublimelinter_executable_map":
{
"javascript":"C:/Program Files/nodejs/node.exe",
"css":"C:/Program Files/nodejs/node.exe"
}
,"csslint_options":
{
"adjoining-classes": "warning",
"box-model": false, // disable warning about border+padding+width
"box-sizing": "warning",
"compatible-vendor-prefixes": "warning",
"display-property-grouping": true,
"duplicate-background-images": "warning",
"duplicate-properties": true,
"empty-rules": true,
"errors": true,
"fallback-colors": "warning",
"floats": "warning",
"font-faces": "warning",
"font-sizes": "warning",
"gradients": "warning",
"ids": "warning",
"import": "warning",
"important": "warning",
"known-properties": true,
"outline-none": "warning",
"overqualified-elements": "warning",
"qualified-headings": "warning",
"regex-selectors": "warning",
"rules-count": "warning",
"shorthand": "warning",
"star-property-hack": "warning",
"text-indent": "warning",
"underscore-property-hack": "warning",
"unique-headings": "warning",
"universal-selector": "warning",
"vendor-prefix": true,
"zero-units": "warning"
}
}
// don't build sass files starting with _ (underscore)
// windows version
{
"filename_filter": "^[^_]*.(sass|scss)$",
"build_on_save": 1
}

List of Sublime Text 2 plugin I use

  • Emmet
  • Sidebar Enhancements
  • SublimeLinter
  • SASS
  • SASS Build
  • SublimeOnSaveBuild
  • Cobalt2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment