Skip to content

Sublime Text 3 Setup

Lev Brie edited this page Feb 9, 2015 · 2 revisions

Setting up Sublime Text

The first thing you need to start working with Sublime Text is package control. If you're using Sublime Text 3, go to your Sublime Text console by typing:

ctrl+\`

shortcut or by going to View > Show Console and then pasting this Python code in:

import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

If you're not using Sublime Text 3, or want more info about this, go to https://packagecontrol.io/installation#st3

Link to My Color Scheme

My color scheme (that is, my syntax coloring - the sidebar and tabs and everything else is Seti_UI) is a tweaked version of Atom's Base16 Tomorrow Light tweak. You can get it at https://github.com/levbrie/atomized-tomorrow-color-scheme

Link to My JavaScript Snippets

I modified my JavaScript snippets to fit best practices. They can be found at https://github.com/levbrie/opinionated-js-snippets. I've submitted a pull request for them to be added to package control but this hasn't yet happened, so if you want to use them you can run:

git clone https://github.com/levbrie/opinionated-js-snippets.git ~/Library/Application Support/Sublime Text 3/Packages/

Caveat Emptor

I use a lot of Sublime Packages. Before you go ahead and use them all I want to give 2 warnings. First, if your computer isn't fast, this may not be a good idea to begin with. Every Sublime package you add has a negative impact on performance, and with some packages the impact is significant. I have a pretty high-powered MacBook Pro and this is almost never a problem for me (although I have removed packages before because they were causing a slowdown) but if your computer doesn't have great performance characteristics to begin with you may want to be pretty choosy about the packages you install into Sublime. Second, some of these are old packages that I don't use very often but are there for legacy reasons, so you might want to look these packages up before you use them and decide if you'll need them. Third, if you're on Windows, some of these may need an additional plugin to work - you'll have to check out the individual repos for these packages to see if you need to make any changes.

To install additional packages, make sure you have package installer installed, then type

My Currently Installed Packages:

3024 Color Scheme AdvancedNewFile Alignment AngularJS Snippets AngularJS Bootstrap 3 Snippets BracketHighlighter Color Highlighter Color Scheme - Creamy Colorcoder ColorPicker ColorSchemeEditor Cucumber Darkula Color Scheme Devastate Dimmed Color Scheme EditorConfig Emmet ERB Snippets FindKeyConflicts Gherkin (Cucumber) Formatter GitGutter Github Color Theme Haml jQuery Snippets for Coffeescript Keymaps LESS Markdown Extended Markdown Preview MarkdownTOC Package Control Pretty JSON Related Files Sass Seti_UX SideBarEnhancements Theme - amCoder Theme - itg.flat Theme - Spacegray Theme - Watson ThemeTweaker Tomorrow Color Schemes TrailingSpaces Vintageous Whitespace zenburn Seti_UI (for Seti Sublime theme) - see https://github.com/ctf0/Seti_ST3

My Sublime Preferences

This is a copy of my Preferences.sublime-settings file, which you can set by going to Sublime Text > Preferences > Settings - User

{
  "auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin, text.haml",
  "auto_complete_triggers":
  [
    {
      "characters": "<",
      "selector": "text.html"
    },
    {
      "characters": " ",
      "selector": "text.html meta.tag"
    }
  ],
  "bold_folder_labels": true,
  "caret_style": "phase",
  "color_scheme": "Packages/User/atomized-tomorrow.tmTheme",
  "ensure_single_trailing_newline": true,
  "font_family": "Source Code Pro",
  "font_size": 14,
  "highlight_line": false,
  "highlight_modified_tabs": true,
  "ignore_whitespace_on_current_line": true,
  "ignore_whitespace_only_lines": false,
  "ignored_packages":
  [
    "Vintage",
    "Colorcoder",
    "Seti_UX"
  ],
  "inverse_caret_state": true,
  "line_padding_bottom": 1,
  "margin": 1,
  "overlay_scroll_bars": "enabled",
  "remove_trailing_whitespace_on_save": true,
  "rulers":
  [
    80
  ],
  "scoll_past_end": true,
  "tab_size": 2,
  "theme": "Seti.sublime-theme",
  "translate_tabs_to_spaces": true,
  "vintageous_enable_cmdline_mode": true,
  "vintageous_reset_mode_when_switching_tabs": true,
  "vintageous_use_ctrl_keys": false,
  "vintageous_verbose": false
}