Reputation: 317
I want to replace a list of the word flipInY with a different word for each occurrence. For example, I have this:
flipInY flipInY flipInY flipInY flipInY flipInY flipInY flipInY flipInY flipInY
I want it to become this:
bounce flash pulse rubberBand shake headShake swing tada wobble jello
Is there a way to do this automatically with Sublime?
Upvotes: 3
Views: 1303
Reputation: 4412
You can do this with a series of built-in shortcuts.
Type your list into the editor, with each item on its own line:
bounce
flash
pulse
rubberBand
shake
headShake
swing
tada
wobble
jello
Select all (Ctrl + A / Super + A).
flipInY
s, find and select every instance. You can do this by opening the find panel, typing in flipInY
, and clicking Find All (or alt+enter). Note that this won't work unless you have the same number of occurrences of flipInY
. In your case, there should be 10.Upvotes: 6