filtrar-ficheros-vscode

How to Filter Files in VSCode

  • 1 min

Today we are going to see how to filter files in the folder list of our current Workspace, so that the file listing shows only those that match a pattern.

This is a simple new feature, yet highly anticipated by regular VSCode users. It is available starting from version 1.70 of Visual Studio Code, released in July 2022.

To filter the files, we simply need to click on the file panel of our Workspace. Now press Control+F, which will open the traditional file search tool, which has existed since the early versions of VS Code.

Next, and this is the new feature in version 1.70, we can click the “filter” icon. Now, instead of the traditional search, we switch to file filtering mode. vscode_filter_tool

Now we simply need to type the criteria by which we want to filter the files. For example, we can type a file extension to show only files with that specific extension.

That’s how easy it is to filter the list of files we are working with in Visual Studio Code. A very simple improvement, but one that was highly anticipated by those of us who regularly work with this popular text editor.