Sublime Text 3 – Multi Select and Multi Edit

I use Sublime Text 3 text editor for viewing and editing files. Sublime Text offers various features. There is one important and useful feature – You can search and select multiple instances at one and replace them with a different text.

For example, if you have text “-test” in multiple places in the document and if you want to replace the text with “-prod” at once for all the selected instances, then here are simple steps:

  1. Open the document in Sublime Text
  2. Select any string in the document, for my example I am selecting “-test”
  3. Now press:
    • MAC: Command + Control + G
    • Windows: Alt + F3
  4. Now you will notice that all the occurrences are selected and highlighted
  5. Now hit Delete or Backspace
  6. Type different text, for my example I am typing “-prod”
  7. You can see that the text is now replaced with new value

Leave a Reply

Your email address will not be published. Required fields are marked *