Search in VS Code for multiple terms

前端 未结 4 1372
再見小時候
再見小時候 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:20

    Use regex flag and search for (word1[\s\S\n]*word2)|(word2[\s\S\n]*word1)


    Made a small extension based on @tonix regex:

    https://marketplace.visualstudio.com/items?itemName=usernamehw.search

提交回复
热议问题