首页 > 解决方案 > 如何从 VS Code 的快速打开面板中删除“最近打开”列表?

问题描述

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

我希望它只显示文件结果,或者至少将它们放在首位,但我找不到任何可以做到这一点的选项。它存在吗?还是我只是缺少正确的搜索词?

标签: visual-studio-codevscode-settings

解决方案


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

推荐阅读