Skip to content

Instantly share code, notes, and snippets.

@tim545
Last active June 8, 2016 09:57
Show Gist options
  • Save tim545/9750503 to your computer and use it in GitHub Desktop.
Save tim545/9750503 to your computer and use it in GitHub Desktop.
Sublime Text 3 Settings

Setup a new installation of Sublime Text

These instructions will set up sublime with some good setting and packages quickly.

Add key bindings

These key bindings do two things:

  • Add's camel case stops in word seperations which helps with keyboard navigation
  • Add's a new shortcut alt+space which toggles the sidebar on and off for some nice full-width distraction free coding Copy and paste the code into your user key bindings file.
[
  { "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
  { "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
  { "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
  { "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
  { "keys": ["alt+space"], "command": "toggle_side_bar" },
  {
    "keys": ["super+alt+space"],
    "command": "set_layout",
    "args":
    {
      "cols": [0.0, 0.5, 1.0],
      "rows": [0.0, 0.5, 1.0],
      "cells":
      [
        [0, 0, 1, 1], [1, 0, 2, 1],
        [0, 1, 1, 2], [1, 1, 2, 2]
      ]
    }
  }
]

Packages

First install package control by following their instructions then in your editor install these packages:

  • SublimeCodeIntel
  • SublimeLinter
  • SublimeREPL
  • BracketHighlighter
  • FileDiffs
  • GitGutter
  • MarkdownEditing
  • SideBarEnhancements
  • Status Bar File Size
  • HTML-CSS-JS Prettify
  • Theme - itg.flat
  • GotoRowCol
  • Java​Script Completions

Manually install other packages

User settings

Copy and paste these into your user settings

{
  "always_show_minimap_viewport": true,
  "bold_folder_labels": true,
  "caret_style": "phase",
  "copy_with_empty_selection": false,
  "draw_minimap_border": false,
  "font_face": "Hack",
  "font_size": 12,
  "highlight_line": true,
  "highlight_modified_tabs": true,
  "indent_guide_options":
  [
    "draw_normal",
    "draw_active"
  ],
  "match_brackets_angle": true,
  "open_files_in_new_window": false,
  "shift_tab_unindent": false,
  "spell_check": true,
  "translate_tabs_to_spaces": true,
  "word_wrap": true,
  "show_encoding": true,
  "tab_size": 2,
  "theme": "itg.flat.dark.blue.sublime-theme",
  "itg_sidebar_tree_small": true,
  "itg_small_tabs": true
}

Add the OSX command line tool

Follow the instructions here http://www.sublimetext.com/docs/3/osx_command_line.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment