Skip to content

Instantly share code, notes, and snippets.

@janusch
Created June 18, 2013 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janusch/5803482 to your computer and use it in GitHub Desktop.
Save janusch/5803482 to your computer and use it in GitHub Desktop.
Sublime Text 2 - useful add-ons, themes, colors, custom user preferences and keys. (feel free to add) (also feel free to add your custom key bindings - so we might find a common ground for setup on mac)
== Install Package Manager
paste code into ST console:
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')
== Plugin Suggestions (add yours)
SideBarEnhancements
Synced Sidebar
AllAutocomplete
TrailingSpaces
SublimeLinter
Sublime CodeIntel
handlebars
nodejs
node launcher
nodejs require
coffescript
coffee autocomplete
coffee compiler
stackoverflow
git
less
LiveReload
Find Key Conflicts
Bracket Highlighter
For Rails setup see the following Plugins and text:
- https://github.com/mhartl/rails_tutorial_sublime_text
DetectSyntax
CTags
ERB Insert and Toggle Commands
ERB Snippets
== Themes and Colors
"theme": "Soda Dark.sublime-theme"
color: Tomorrow Theme
== User Settings
{
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_size": 16.0,
"ignored_packages":
[
"Vintage",
"IndentGuides"
],
"tab_size": 2,
"theme": "Soda Dark.sublime-theme",
"translate_tabs_to_spaces": true
}
== Key Bindings - User
[
{ "keys": ["ctrl+f12"], "command": "reindent", "args": {"single_line": false} },
{ "keys": ["ctrl+k", "ctrl+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+-"], "command": "navigation_history_back"},
{ "keys": ["ctrl++"], "command": "navigation_history_forward"}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment