Sublime Text Settings I Use

August 24, 2013 - Jake Bresnehan

It’s always interesting to find out how people set up their coding environment. To be honest I don’t think I’ll ever get the perfect setup but what I currently have does a pretty good job.

Tweaking your Sublime Text settings is relatively easy but can be a little daunting if you are fan of a GUI. Within Sublime all settings are handled by a simple JSON file. They can be found either under the Sublime Text menu (Sublime Text 2 -> Preferences -> Settings – User) or by the shortcut (Command + .).


User Settings

So these are my current settings. All of them are pretty self-explanatory.


{
    "auto_complete_commit_on_tab": true,
    "color_scheme": "Packages/Color Scheme - Default/Monokai Soda.tmTheme",
    "draw_minimap_border": true,
    "draw_white_space": "all",
    "font_face": "monaco",
    "font_size": 14,
    "highlight_line": true,
    "line_padding_bottom": 1,
    "line_padding_top": 1,
    "shift_tab_unindent": true,
    "tab_size": 4,
    "theme": "Soda Dark.sublime-theme",
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true,
    "word_wrap": true,
    "save_on_focus_lost": true,
    "bold_folder_labels": true,
    "highlight_modified_tabs": true,
    "scroll_past_end": true,
    "wrap_width": 80
}

Theme

I roll with the dark version of the Soda theme with the default Monokai colour scheme.


Packages

Package Control — This package is the package to help install all other packages. Once installed, just open the command palette (Command + Shift + p). Type ‘Package Control’ and choose your desired action.

SideBarEnhancements — Provides enhancements to files and folders. So handy!

GitGutter — This plugin shows an icon in the gutter area indicating whether a line has been inserted, modified or deleted.

SublimeLinter — Inline lint highlighting. Priceless.

Sublime Grunt — Control your Grunt tasks from inside Sublime.

SCSS — SCSS highlighting.


Some handy short-cuts

A small selection of the my most used commands.

Option + Command + . — Close tag.

Command + p — Show the “go to anything” palette.

Command + Shift + p — Show the command palette.

Ctrl + g — Show the “go to line” palette.

Command + k, Command + b — Toggle the sidebar.

Ctrl + Shift + Command + f — Launch distraction-free writing.

Function + f6 — Spell check.


Obviously the above suits my workflow, so take the settings and packages with a grain of salt. But if you have any specific settings or packages that are essential to the way you work, please comment below. You might save me or someone else some time!