Skip to content

Instantly share code, notes, and snippets.

@john-patrik
Last active December 15, 2015 07:09
Show Gist options
  • Save john-patrik/5220899 to your computer and use it in GitHub Desktop.
Save john-patrik/5220899 to your computer and use it in GitHub Desktop.
Sublime Text 2

SublimeText 2

Cheat sheet

  • Select inside Tag: Super + Shift + A
  • Select Indentation: Super + Shift + J
  • Select inside Scope: Super + Shift + Space
  • Tag Complete: Super + Alt + .
  • Select To BOL: Shift + Alt + A
  • Select To EOL: Shift + Alt + L

Settings

User Settings

{
  "auto_complete": false,
  "color_scheme": "Packages/User/Railscasts.tmTheme",
  "detect_indentation": false,
  "font_size": 12.0,
  "scroll_past_end": false,
  "tab_size": 2,
  "translate_tabs_to_spaces": true,
  "trim_trailing_white_space_on_save": true,
  "use_tab_stops": true,
  "word_wrap": false,
  "detect_slow_plugins": false
}

Macros & Keybinds

User Keybinds

[
  {
    "args":
    {
      "contents": "%$0 %>"
    },
    "command": "insert_snippet",
    "context":
    [
      {
         "key": "selector",
         "match_all": true,
         "operator": "equal",
         "operand": "source.ruby, source.erb, text.html.ruby, text.haml, source.yaml, source.css, source.scss, source.js, source.coffee"
      },
      {
        "key": "preceding_text",
        "operator": "regex_match",
        "operand": ".*<",
        "match_all": true
      }
    ],
    "keys": [ "%" ]
  },
  { "keys": ["super+shift+right"], "command": "indent" },
  { "keys": ["super+shift+left"], "command": "unindent" },
  { "keys": ["shift+alt+a"], "command": "move_to", "args": {"to": "bol", "extend": true} },
  { "keys": ["shift+alt+l"], "command": "move_to", "args": {"to": "eol", "extend": true} }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment