Skip to content

Instantly share code, notes, and snippets.

@zeroasterisk
Last active October 10, 2015 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeroasterisk/3623934 to your computer and use it in GitHub Desktop.
Save zeroasterisk/3623934 to your computer and use it in GitHub Desktop.
Sublime Text 2 Settings User & keybindings & recommended plugins
<pre>
[
// plugins
{ "keys": ["ctrl+shift+t"], "command": "whitespacecorrector" },
{ "keys": ["ctrl+x"], "command": "clipboard_manager_cut" },
{ "keys": ["ctrl+c"], "command": "clipboard_manager_copy" },
{ "keys": ["ctrl+v"], "command": "clipboard_manager_paste", "args": { "indent": true } },
{ "keys": ["ctrl+alt+v"], "command": "clipboard_manager_paste", "args": { "indent": false } },
{ "keys": ["ctrl+shift+v"], "command": "clipboard_manager_choose_and_paste" },
{ "keys": ["ctrl+i", "ctrl+alt+v"], "command": "clipboard_manager_next_and_paste" },
{ "keys": ["ctrl+i", "ctrl+shift+v"], "command": "clipboard_manager_previous_and_paste" },
{ "keys": ["ctrl+shift+'"], "command": "change_quotes" },
{ "keys": ["ctrl+shift+'"], "command": "change_quotes" },
{ "keys": ["f4"], "command": "goto_symbol", "args": { "action": "list_carret_matches" } },
{ "keys": ["ctrl+shift+c"], "command": "pastebin" },
// reset from a plugin
{ "keys": ["f2"], "command": "next_bookmark" },
{ "keys": ["shift+f2"], "command": "prev_bookmark" },
{ "keys": ["ctrl+f2"], "command": "toggle_bookmark" },
{ "keys": ["ctrl+shift+f2"], "command": "clear_bookmarks" },
{ "keys": ["alt+f2"], "command": "select_all_bookmarks" },
// resets
{ "keys": ["ctrl+alt+d"], "command": "duplicate_line" },
{ "keys": ["ctrl+shift+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+d"], "command": "find_under_expand" }, // find next highlit word
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+k", "ctrl+l"], "command": "expand_selection", "args": {"to": "line"} },
{ "keys": ["ctrl+i"], "command": "reindent" },
{ "keys": ["ctrl+alt+i"], "command": "abacus" },
{ "keys": ["ctrl+alt+shift+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse":false} },
{ "keys": ["ctrl+shift+l"], "command": "lower_case" },
{ "keys": ["ctrl+alt+shift+l"], "command": "split_selection_into_lines" },
{ "keys": ["ctrl+alt+u"], "command": "upper_case" },
{ "keys": ["ctrl+alt+shift+u"], "command": "soft_redo" },
{ "keys": ["ctrl+alt+f3"], "command": "find_under" },
{ "keys": ["ctrl+f3"], "command": "next_result" },
// Replace panel key bindings
{ "keys": ["f4"], "command": "replace" },
{ "keys": ["alt+a"], "command": "replace_all", "args": {"close_panel": true},
"context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
},
// custom settings changes
{ "keys": ["ctrl+alt+w"], "command": "set_setting", "args": { "setting": "word_wrap", "value": true } },
{ "keys": ["ctrl+alt+shift+w"], "command": "set_setting", "args": { "setting": "word_wrap", "value": false } },
// custom fast-snippets
{ "keys": ["alt+shift+t"], "command" : "insert_snippet", "args": { "contents": "<${1:p}>${0:$SELECTION}</${1}>" } },
// extra base command helpers
{ "keys": ["super+ctrl+r"], "command": "settings_refresh" },
{ "keys": ["alt+ctrl+r"], "command": "refresh_folder_list" }
]
</pre>
If you're not making a project for each "project" you work on, you're not "doing it right" -- it's worth while.
Because when you use CTRL+P or CMD+P you should be able to fuzzy-search across all files in your project and it's amazing.
{
"color_scheme": "Packages/Dogs Colour Scheme/Dogs.tmTheme",
"default_line_ending": "unix",
"detect_slow_plugins": false,
"fade_fold_buttons": false,
"word_wrap": false,
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"shift_tab_unindent": true,
// The number of spaces a tab is considered equal to
"tab_size": 4,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": false,
// Set to false to disable detection of tabs vs. spaces on load
"detect_indentation": true,
// automatic cleanup
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
// Columns in which to display vertical rulers
"rulers": [80],
// Set to true to turn spell checking on by default
"spell_check": false,
// If enabled, will highlight any line with a caret
"highlight_line": true,
// Valid values are "smooth", "phase", "blink", "wide" and "solid".
"caret_style": "wide",
// Set to false if you'd rather only highlight the brackets when the caret is next to one
"match_brackets_content": true,
// Set to false to not highlight square brackets. This only takes effect if matchBrackets is true
"match_brackets_square": true,
// Set to false to not highlight curly brackets. This only takes effect if matchBrackets is true
"match_brackets_braces": true,
// Enable visualisation of the matching tag in HTML and XML
"match_tags": true,
// Additional spacing at the top of each line, in pixels
"line_padding_top": 0,
// Additional spacing at the bottom of each line, in pixels
"line_padding_bottom": 0,
"font_size": 11.0,
"scroll_past_end": true,
// The encoding to use when the encoding can't be determined automatically.
// ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
"fallback_encoding": "UTF-8",
"default_encoding": "UTF-8",
// Places a highlight on tabs with unsaved changes
"highlight_modified_tabs": true,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
"*.o",
"*.a",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
".DS_Store",
"*.class",
"*.psd",
"*.gif",
"*.jpg",
"*.png",
"*.jpeg",
"*.swf",
"*.fla",
"*.ico",
"*.db"
],
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
"tmp",
".DS_Store",
".sass-cache",
"cache"
],
"ignored_packages":
[
"Vintage"
],
"theme": "Soda Dark.sublime-theme"
}
http://wbond.net/sublime_packages/package_control - a plugin which makes installing plugins easy
SublimeCakePHP
clipboard manager
cakephp snippets
WordHighlighter
WhitespaceCorrector
BracketHighlighter
ChangeQuotes
DocBlockr
SyncedSidebar
SFTP (jankity, but good enough)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment