Multiple Cursors Overview0:00
Let's talk about multiple cursors. Imagine that we have this dummy Person class, and we have a very long variable name called PersonName. What if we decide we want to change that to a more appropriate variable name of name? Okay, well, if you come from an IDE, they usually have refactoring options here. So you could hit the name, hit a refactoring shortcut, change it to name, and it would update everywhere in the file. And Sublime, remember, it's not an IDE, it's just a general-purpose code editor. Instead, well, you have a couple choices. One, if I hover my cursor over a variable name and hit Command-D, notice that it selects the word. So I can change that however I want.
Selecting Occurrences with Command-D2:02
So now we can change it, and it updates in each location. You'll use this all the time. Now, what I find is, generally, I'm just updating a variable or a string within a method. So in those situations, I will just use Command-D. For example, if I want to change this and only this, I would just go Command-D, D, D, Change. Done. Alright, so make sure you remember these two. You'll use them all the time. Command-D to select a word, keep tapping D to select additional occurrences of the word,
