如何从 VS Code 的快速打开面板中删除 "recently opened" 列表?

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

使用快速打开快捷方式 (CTRL/CMD + P) 导航文件始终将最近打开的文件放在第一位,然后是文件结果。

我希望它只显示文件结果,或者至少将它们放在第一位,但我找不到任何可以执行此操作的选项。它存在吗?还是我只是缺少合适的搜索词?

在您的 VS Code 设置中使用它(在 macOS 中,代码 -> 首选项 -> 设置,Windows/Linux 上的文件 > 首选项> 设置)。打开JSON格式的设置(标签栏右上角的文档图标),添加:

"search.quickOpen.includeHistory": false

我添加这个答案只是为了描述 属性。所有学分@Hejazzman。

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

此设置于 2018 年 9 月发布的 VS 代码版本 1.28。根据 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.