11

I want to search for a file name in VSCode, and I'd like to be able to use Regex to filter the search results.

I've already seen answers like this Find a file by name in Visual Studio Code but unfortunately there's no obvious way to apply regex.

The search function has regex support, but only seems to look inside files, and not at the file names themselves. And there doesn't seem to be anything in settings that you can change that would support regex file searching, just including/excluding things like .gitignore.

Is there a way to search files by regex in VSCode? Do I need another tool?

ADataGMan
  • 449
  • 1
  • 7
  • 23
  • 1
    For anyone else who wants a solution to this, I created a [feature request](https://github.com/microsoft/vscode/issues/127723). – ADataGMan Jul 01 '21 at 01:37

1 Answers1

0

I know this is not the same, but "Open Multiple Files" extension from Fabio Spampinato makes you open all the files corresponding to a certain glob (which basically is regex for files).

albertopasqualetto
  • 87
  • 1
  • 1
  • 11
  • 1
    @SecretAgentMan you are right, but without that extension, the answer will be invalid in any case, I only can write the extension's name in the answer. – albertopasqualetto Aug 24 '22 at 15:48