Screencast: How to use Multi-cursors with Sublime Text 2

This is something I never used in any of my previous IDEs like Dreamweaver but multi-cursors are something that you will grow to love in their functionality. After a couple uses you will question how you ever got on without them.

So here is a less then 3 minute video that will show you how easy and powerful multi-cursors are.

Screencast: How to use Multi-cursors with Sublime Text 2

The shortcuts

To enable multi-selection, you have several options:

  • Press Ctrl + click (Mac is Cmd + click) in each region where you require a cursor.
    • this adds cursors wherever you click
  • Select a block of lines and then press Shift + Command + L.
    • adds cursors after your highlighted block
      • use the right arrow on keyboard to start typing after highlighted block (and not erase what is highlighted)
  • Place the cursor over a particular word, and press Control/Command + D repeatedly
    • to select additional occurrences of that word.
  • Alt+F3 on Windows, (or Ctrl+Command+G on the Mac)
    • adds an additional cursor at all occurrences of a word by typing Amazing!!
      • my personal favorite

If you know of additional ways to use mutli-cursors, please share in the comments below.

Sublime Kickstart (a collection of resources to help you quickly get comfortable with ST2)

Happy coding.

Leave a Reply

Your email address will not be published. Required fields are marked *