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

This is some­thing I never used in any of my pre­vi­ous IDEs like Dreamweaver but multi-cursors are some­thing that you will grow to love in their func­tion­al­ity. After a cou­ple uses you will ques­tion how you ever got on with­out them.

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

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

The short­cuts

To enable multi-selection, you have sev­eral options:

  • Press Ctrl + click (Mac is Cmd + click) in each region where you require a cursor.
    • this adds cur­sors wher­ever you click
  • Select a block of lines and then press Shift + Com­mand + L.
    • adds cur­sors after your high­lighted block
      • use the right arrow on key­board to start typ­ing after high­lighted block (and not erase what is highlighted)
  • Place the cur­sor over a par­tic­u­lar word, and press Control/Command + D repeatedly
    • to select addi­tional occur­rences of that word.
  • Alt+F3 on Win­dows, (or Ctrl+Command+G on the Mac)
    • adds an addi­tional cur­sor at all occur­rences of a word by typ­ing Amaz­ing!!
      • my per­sonal favorite

If you know of addi­tional ways to use mutli-cursors, please share in the com­ments below.

Sub­lime Kick­start (a col­lec­tion of resources to help you quickly get com­fort­able with ST2)

Happy cod­ing.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>