- Download here: http://www.sublimetext.com/
- Copy into /Applications (OSX, install however your OS wants you to)
- Add symlink so you can launch sublime from the command line using 'sublime'
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
Launch Sublime! > sublime .
Note: Sublime unregistered will bug you every few minutes to purchase a license. If you've decided that this is going to be be your daily driver editor, it is a good idea to purchase a licence. These can be expensed!
Set these by going to your User preferences, Sublime Text -> Preferences -> Settings - User
-
Always have a newline at the end of your files. Cleaner diffs for all! Add this line:
"ensure_newline_at_eof_on_save": true,
-
To touch on Jordan's speedy grep post, exclude unnecessary files from search for faster greps with less noise:
"binary_file_patterns": ["*zxcvbn.js",".git/*","vendor/*","node_modules/*","coverage/*","log/*","tmp/*","*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],
- Do searches on highlighted text (If not on OSX this defaults to true, but OSX needs to add this line):
"find_selected_text": true,
- Show whitespace characters (sometimes useful)
"draw_white_space": true,
- Translate tabs to spaces. Please do not check in tab characters!
"tab_size": 2,
"translate_tabs_to_spaces": true,
- Trim whitespace (Note: enabling this will cause messy diffs for a while, as there are a lot of files with unnecessary whitespace. Use only if you're OK with that.)
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": true,
The following assume you're using Package Control ! Makes it really easy to manage packages. Highly recommended. Follow installation steps for your sublime version here.
To install a package, hit CMD+SHIFT +P to open the command pallet, and type 'install package'. Hit enter, and then search/install the following:
- BetterCoffeeScript - Syntax highlighting/linter for coffeescript.
// I had to add this to my BetterCoffeeScript user Settings:
{
"envPATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
}