Created
May 3, 2012 21:44
-
-
Save amiel/2589753 to your computer and use it in GitHub Desktop.
Sublime Text 2 Configuration
This file contains hidden or 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
{ | |
"auto_complete_commit_on_tab": false, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Inconsolata-dz", | |
"font_size": 14.0, | |
"highlight_line": true, | |
"rulers": | |
[ | |
80, | |
96 | |
], | |
"shift_tab_unindent": true, | |
"spell_check": false, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"wrap_width": 96 | |
} |
Some plugins I've found useful:
- First off: http://wbond.net/sublime_packages/package_control makes it really easy to install more plugins, like all that follow
- DetectSyntax is helpful, especially when some files have the same extension but a different syntax (like plain old ruby vs rspec vs ruby on rails)
- I like SublimeLinter, but I could see how others might just find it annoying, it highlights lines where the linter gives warnings.
- Since I use rspec, I'm using the RSpec plugin for ST2.
I'm not quite sure which of all the plugins I have came default and which I've installed myself, so there may be others to recommend that I'm missing.
Some of my favorite features
- I'm not actually sure which plugin gives me this functionality, but when I hit
⌘-
., it swaps between a file and it's relative spec file. (I'm guessing that this comes from the rspec package but I'm not entirely sure). - I've really enjoyed the multiple-cursor feature (which is also new in TextMate2).
- If you hold
⌘
while clicking, it'll add a new cursor - If you hold
⌥
while dragging it'll do a block select, with which you can do a zero-width column block select to get a vertical line of cursors - If you hold
⇧⌃
and use up/down arrows, you get more cursors in a vertical line (this is the technique I use most often as it doesn't involve the mouse) - Some neat things you can do with multiple-cursors:
Try using keyboard navigation, each cursor follows it's own rules. For example, using⌥-arrows
moves each cursor a word, or⌃a
/⌃e
for beginning-of-line / end-of-line respectively. Anyway, I've found this to be super useful in all sorts of situations.
- If you hold
Well that's what I can think of now. I'm also very new to Sublime Text 2. Do you have any tips? What's been godlike for you?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Definitely going to take a look at this. Just started using Sublime, it's godlike so far. Any tips? (specifically any Rails goodies?)