Cmd + d selects the current word. Subsequent Cmd + d presses will select the following instance of the word for editing. Makes it easy to do things such as renaming a local variable or changing both the opening and closing element of a HTML tag.
Some things beginners might not know about Sublime Text
31–40 of 116 posts
Re: Some things beginners might not know about Sublime Text
#32Re: Some things beginners might not know about Sublime Text
#33Still doesn't seem to have 'correct indentation' which I would use often, especially for 'data' files like XML or JSON.
So, in this case, you would go to http://wbond.net/sublime_packages/community and search for "indent" or "pretty" or "xml".
Re: Some things beginners might not know about Sublime Text
#34I eventually had to get an extension and modify it to replicate emacs' c-x c-f to create files.
Re: Some things beginners might not know about Sublime Text
#35- Goto file: "con pos" -> app/controllers/posts_controller.rb
- Goto line in file: "con pos:100" -> app/controllers/posts_controller.rb line 100
- Goto function in file: "con pos@foo" function foo in app/controllers/posts_controller.rb
Also one that came up recently is CMD+ALT+Q to auto-wrap long comments to your ruler (e.g. 80 columns).
Re: Some things beginners might not know about Sublime Text
#36Cmd + d selects the current word. Subsequent Cmd + d presses will select the following instance of the word for editing. Makes it easy to do things such as renaming a local variable or changing both the opening and closing element of a HTML tag.
Also notable is that you can skip the currently selected element (i.e. unselect it) if you press ctrl+k+d. Sublime will then continue to select the next word, but leaves the one you just selected unselected.
Re: Some things beginners might not know about Sublime Text
#37Earlier quoted context omitted.
The command and alt modifiers work when I use the arrow key but this ctrl doesn't seem to do anything... OS X lion. For example, I put the caret in front of a camelCased variable and press ctrl+right arrow, nothing happens. Am I doing it wrong?
You need to hold alt _and_ ctrl at the same time.
Re: Some things beginners might not know about Sublime Text
#38Re: Some things beginners might not know about Sublime Text
#39One of my favorite features is the flexibility of the Goto Anything dialog (CMD+T or CMD+P) e.g.: - Goto file: "con pos" -> app/controllers/posts_controller.rb - Goto line in file: "con pos:100" -> app/controllers/posts_controller.rb line 100 - Goto function in file: "con pos@foo" function foo in app/controllers/posts_controller.rb Also one that came up recently is CMD+ALT+Q to auto-wrap long comments to your ruler (…
"conpos:100"
works fine.Re: Some things beginners might not know about Sublime Text
#40EDIT: Just for fun, here is that file on OS X: https://gist.github.com/3117613 Notice the "context" definitions. Also check out how the auto-pairing functionality is defined in terms of the key binding DSL. And how you can define nonstandard layouts for the panes. And so on.
Sublime is great. It reminds me of a less insane version of Foobar2000.