Thursday, December 5, 2013

Sublime Text Editor: Multi-Cursor

Sublime is my new favorite text editor. I've spent a lot of time with Notepad++ and loved it. Now that I use OS X as my primary desktop OS, I couldn't find anything I liked as much... until now.

Sublime is pretty expensive (~$70), but the trial never expires. In the 1 month I've been using it, there has only been one popup that says that I should buy it if I plan to keep using it. It was pretty non-threatening.

After using it for awhile, I have to admit that one day, I'll probably buy it.

I use a text editor primarily for pre-staging network device configurations. This usually involves a lot of find/replace and editing repetitive/similar blocks of text.

Many text editors have "block editing". You press alt/option and select, then you'll have your cursor span multiple rows in the same place, so you can edit multiple lines at once.

Sublime supports block editing. But what's even better than block editing? Multi-cursor editing. Hold command and click your mouse to set your cursor to multiple places at time. Then, whatever you type will be populated at each cursor placement.



Sublime also supports split windows vertically, horizontally, or both.
There are plenty of things to love about Sublime, but with what I've shared here, it's already my favorite editor.




Welcome!

I've decided to start a blog about the little tips and tricks I come across that make my life easier. Topics will mostly be about software related tools, but anything I think other people might find useful, I'll share!

Hope you enjoy!