在 Visual Studio Code 中按名称查找文件 [英] Find a file by name in Visual Studio Code

查看:39
本文介绍了在 Visual Studio Code 中按名称查找文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Visual Studio Code 中按名称查找文件?

How can I find a file by name in Visual Studio Code?

我习惯使用的 Visual Studio 快捷方式是 CTRL+,,但在这里不起作用.

A Visual Studio shortcut I'm used to is CTRL+,, but it does not work here.

推荐答案

当您在工作区中打开文件夹时,您可以执行 Ctrl+P (Cmd+P(Mac)并开始输入文件名或扩展名以过滤文件名列表

When you have opened a folder in a workspace you can do Ctrl+P (Cmd+P on Mac) and start typing the filename, or extension to filter the list of filenames

如果你有:

  • plugin.ts
  • page.css
  • plugger.ts

你可以输入css并回车,它会打开page.css.如果您键入 .ts,列表将被过滤并包含两个项目.

You can type css and press enter and it will open the page.css. If you type .ts the list is filtered and contains two items.

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

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