regexvisual-studio-codesearchfile-type

How to search for just a specific file type in Visual Studio code?


In Visual Studio code, how do I search for just a specific file type (i.e. *.css or *.ts)?

PS: I'm talking about the global search (Ctrl+Shift+F in Windows)

I'm already using the "files to include" as a folder filter. So currently it has something like ./src/app.


Solution

  • Click the ellipses on the bottom right to display the "files to include" field.

    You can specify a particular type with "*.filetype".

    E.g.

    screenshot