Skip to content

Instantly share code, notes, and snippets.

@basiszwo
Last active December 30, 2015 10:28
Show Gist options
  • Save basiszwo/5388442 to your computer and use it in GitHub Desktop.
Save basiszwo/5388442 to your computer and use it in GitHub Desktop.
Sublime Text 2 Resources

Sublime Text 2

Resources

Package Manager

Theme Editor

Themes

Packages

Align by anything

Block Cursor

Text Pastry

AllAutocomplete

AdvancedNewFile

Other packages

  • Sass
  • CoffeeScript

ST2 Settings

Newline at EOF

Preference > User - Settings

{
  "ensure_newline_at_eof_on_save": true
}

Trim whitespaces on line endings

{
  "trim_trailing_white_space_on_save": true
}

Tabs are 2 spaces

{
  "tab_size": 2,
  "translate_tabs_to_spaces": true
}

Table formatter (for cucumber)

Table cleaner package required: https://github.com/mishu91/Sublime-Text-2-Table-Cleaner

{	
	"table_cleaner_align_to_middle": false,
	"table_cleaner_delimiters": ["|"],
	"table_cleaner_delimiters_white_spaces": 1
}

Exclude files and folders

{
  "folder_exclude_patterns": [".bundle", ".git", ".sass-cache", "log", "script", "tmp", "import/data"],
  "file_exclude_patterns": ["*.png", "*.gif", ".DS_Store", "Gemfile.lock"]
}

PrettyJSON Formatter

https://github.com/dzhibas/SublimePrettyJson

Format with: CMD + CTRL + J

Reveal File in sidebar

Add key shortcut

{ "keys": ["ctrl+super+r"], "command": "reveal_in_side_bar" },

Paste and indent

paste code and use identation of surounding area. also preserve traditional paste on alternate keybinding.

{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }

other

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