Search for multiple strings in several files with Sublime 3

前端 未结 3 1818
栀梦
栀梦 2020-12-24 12:14

I know how to search for a single string in several files at once with Sublime 3 (explained here).

What I need to do is to search for multiple strings

3条回答
  •  無奈伤痛
    2020-12-24 13:00

    Just came across this old question and thought I'd add my solution, which may be useful for somebody in the future.

    Sublime supports searching in all open folders and can use regex. So utilizing both, you can open or add all folders you want to search in to the project and use regex to search for multiple keywords. In your case it would be the following (make sure to check the regex box .* icon):

    Find: (string1|string2)
    Where: 
    

提交回复
热议问题