How to remove the "recently opened" list from the quick open panel in VS Code?

Viewed 3006

Using the quick open shortcut (CTRL/CMD + P) to navigate files always put the recently opened files first, then the file results.

I would like it to show me only the file results, or at least put them first, but I can't find any options that would do this. Does it exists? Or do I just lack the right term to search ?

2 Answers

Use this in your VS Code settings (Code -> Preferences -> Settings in macOS, File > Preferences > Settings on Windows/Linux). Open the Settings in JSON format (document icon on the top right of the tab bar), and add:

"search.quickOpen.includeHistory": false

I am adding this answer just to give a description of that property. All credits to @Hejazzman.

"search.quickOpen.includeHistory": false, // by default is true

This setting was released of VS code version 1.28 in September 2018. According to the official release documentation,

A new setting allows you to control if files that were recently opened should be part of the Quick Open file picker. By default, files that were recently opened will appear to the top of the search and other files from the workspace below. If you would prefer to not see recently opened files on top, you can change this setting to false.

Related