Last active
October 10, 2015 15:07
-
-
Save drublic/3709041 to your computer and use it in GitHub Desktop.
My Sublime Text 2 Settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+alt+f"], "command": "use_it" }, | |
{ "keys": ["ctrl+tab"], "command": "prev_view_in_stack" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "next_view_in_stack" }, | |
{ "keys": ["ctrl+shift+j"], "command": "js_run" }, | |
// Paste and indent | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
// Insert console.log | |
{ "keys": ["super+shift+l"], | |
"command": "insert_snippet", | |
"args": { | |
"contents": "console.log(${1:}$SELECTION);${0}" | |
} | |
}, | |
// Insert var_dump | |
{ "keys": ["super+shift+k"], | |
"command": "insert_snippet", | |
"args": { | |
"contents": "var_dump(${1:}$SELECTION);${0}" | |
} | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".gitkeep" | |
], | |
"folder_exclude_patterns": | |
[ | |
".git", | |
".sass-cache", | |
"tmp" | |
], | |
"font_face": "Source Code Pro", | |
"font_size": 12.0, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"indent_guide_options": ["draw_normal", "draw_active"], | |
"line_padding_bottom": 1, | |
"line_padding_top": 1, | |
"rulers": | |
[ | |
80 | |
], | |
"scroll_past_end": true, | |
"tab_completion": true, | |
"tab_size": 4, | |
"theme": "Soda Light.sublime-theme", | |
"translate_tabs_to_spaces": false, | |
"trim_trailing_white_space_on_save": true | |
} |
Apart from the whitespace-settings in this file I'd encourage you to use editorconfig (http://editorconfig.org/) in projects. @sindresorhus made a great ST2 plugin for that.
Why "tab_completion": false, ?
@ttscoff suggested to add context to key shortcuts: https://gist.github.com/2951063#comment-354177
So you could use super+shift+l in javascript/php and it pastes the appropiate syntax.
"open_files_in_new_window": false
is also handy.
For easier comments I use these two:
{ "keys": ["ctrl+q"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["ctrl+shift+c"], "command": "insert_snippet", "args": {"name": "Packages/User/InsertSectionComment.sublime-snippet"} },
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Funny thing: I tried some of your settings as well, i.e. the trailing spaces/eof stuff. I was a bit baffled since they didn't work. Turns out they only don't work in settings files, i.e. a trailing space in settings won't be remove on save, also breaking the eof setting. I guess this is because trailing spaces are not allowed in settings files anyway or something.
Anyway, thanks for that. Very useful, actually saves me a package (Trailing Spaces).