如何在 Visual Studio Code 中搜索文件?

问题描述:

我习惯使用 Resharper,在那里我可以搜索文件,不是内容,而是文件名,这使得打开新文件变得快速.

I am used to Resharper where I can search for files, not the content, but the filename, which makes it quick to open new files.

此功能是否在 Visual Studio Code 中实现,是否有快捷方式?

Is this feature implemented in Visual Studio Code and is there a shortcut for it?

使用转到菜单下的转到文件...或使用键盘快捷键:

Using Go to File... which is under the Go menu or using keyboard shortcut:

  • 在 Windows 上 Ctrl+pCtrl+e
  • 在 macOS Cmd ⌘+p
  • 在 Linux 上 Ctrl+pCtrl+e
  • On Windows Ctrl+p or Ctrl+e
  • On macOS Cmd ⌘+p
  • On Linux Ctrl+p or Ctrl+e

然后输入文件名.

还要确保检查您可以设置自己的键绑定,并且有可用于 WindowsmacOSLinux.

Also be sure to checkout that you can set your own keybindings and that there are cheatsheets available for Windows, macOS and Linux.