在VS代码中搜索多个术语

问题描述 投票:8回答:2

假设我在VS Code上搜索术语'word1 word2'。然后它找到'word1'后跟'word2'的所有事件。实际上我想找到word1和word2出现的所有文件,但它们不必是连续的。我该怎么做?

regex search visual-studio-code
2个回答
11
投票

使用正则表达式标志并搜索(word1[\s\S\n]*word2)|(word2[\s\S\n]*word1)


0
投票

VSCode有一个open issue来支持多次搜索。你可能想要去那里推他们一点。

© www.soinside.com 2019 - 2024. All rights reserved.