top | item 27237312

(no title)

klmadfejno | 4 years ago

I use sublime 3 pretty frequently, and am aware of this feature, but haven't experienced a moment where this was useful, or at least, not more useful than just running find-replace (which is fantastic on sublime with its pattern matching and speed and what not btw). How do you use this effectively?

discuss

order

atoav|4 years ago

I will try:

1. Select something at one line

2. Select other occurances of this something using CTRL + d

3. Move the cursors with the arrow keys, by using ALT + Arrow to jump to word boundaries HOME to jump to the beginning of the line for Ll lines that had a cursor on them, END to jump to the end, draw selections by holding SHIFT while doing any of that.

The thing is, when you got this it can be much faster than crafting up a regex in Search/Replace even if you are good with regexes.

SNosTrAnDbLe|4 years ago

I like the visual feedback with the multi select where I can select all the occurrences of a variable and then change the name at the same time without leaving the editor by just using the shortcut.

For find and replace, I have to leave the editor and go to a different tool window. Also, my regex skills are sometimes lacking when I want to find something on a deadline. I only use find and replace when I have to do the same refactor across files.