We can press Shift+Ctrl+F and click the three dots.
In Vscode:
Cross_File_Searching.png

We can specify the files we want to search for (by type or keywords) and those we want to exclude.