2 ms·
I'm going to give you the benefit of the doubt and assume you're not just trolling. Multiple cursors can be useful for doing things like quick renames, which i
by Silhouette 14y ago
I'm going to give you the benefit of the doubt and assume you're not just trolling.
Multiple cursors can be useful for doing things like quick renames, which itself is already useful in a general text editor that is used with many different file formats.
However, for me, they are often more useful because you can pick out general patterns of text/symbols and do the same thing to all of them. Want an extra <th></th> just after each <tr> in four lines of an HTML file? No problem. Want to split a list of function parameters onto separate lines when they don't fit on one any more, or the other way around? No problem.
Sure, in many cases you could do these things with a find-and-replace as well, but that might involve making a selection to limit the scope of the replace operation, setting up some sort of regex to make sure you only find the copies of the original text you actually want, setting up another regex to do the replacement without disrupting anything else nearby, and so on. Using multiple cursors is often much more efficient.