Search in VS Code for multiple terms

前端 未结 4 1374
再見小時候
再見小時候 2020-12-14 16:51

Suppose I search on VS Code the terms \'word1 word2\'. Then it finds all the occurrences where \'word1\' is followed by \'word2\'. In reality I want to find all the files wh

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 17:25

    Here is also a simple way for simple needs - use this as regex

    (word1)|(word2)|(word3)  
    

    It may not cover some cases, but has been working fine for me, and easy to remember to type it in.

提交回复
热议问题