如何在 Visual Studio Code 中搜索文件? [英] How do I search for files in Visual Studio Code?

查看:51
本文介绍了如何在 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.

这篇关于如何在 Visual Studio Code 中搜索文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆