Shortcut to rename, overwrite, or replace words or variables alike in Sublime Text 3

Asked

Viewed 25,409 times

4

In Eclipse, there is a feature that is triggered by the commands CTRL + ALT + U (Correct me if I’m wrong) which renames variables with the same name. Do you know any shortcut from Sublime Text 3 do that? Or is it some plugin?

5 answers

8


Alt + F3 selects all words equal at once.

Ctrl + D increments the selection to the nearest (next and not previous) if you do not want to change all.

  • Very good the alt+f3. I kept squeezing the CTRL+D infinitely, until you reach the maximum

3

CTRL + D selects one by one of the same name. Pressing several times, it selects one by one with the same name.

1

Shift + Ctrl + F

In the first field the object you are looking for, in the second field where is the file you want to modify, third and last the content you want to replace.

0

I do it like this: I select the text to which I want to change all variables/components and press Shift + CTRL + J So I select what I want to change, Delphi selects all variables with the same name in the snippet that I selected and changes simultaneously. After I finished editing, I press Esc to close/finish.

-1

Squeeze CTRL + F and follow the steps below:

  1. Type the name of the variable you want to exchange in the first field.
  2. In the second field type the new name;
  3. Click replace all and all variables will be updated.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.