Vscode 同時搜尋多個關鍵字 (regular expression)

同時搜尋多個關鍵字

例如想查找 Collection 且有使用 ->sum() method 的檔案

使用 vscode 的
Find in Files
點擊啟用最右邊的 use regular expression (位置參考附圖)

輸入關鍵字…

Collection[\s\S\n]*->sum

1個讚