VSCode:在项目中打开文件 [英] VSCode: Open file in project
问题描述
我使用 Mac OS X 和 Visual Studio Code 0.10.10.
I'm using Mac OS X with Visual Studio Code 0.10.10.
如何使用键盘在当前打开的项目中使用部分名称打开文件?我在命令面板中找不到可以执行此操作的命令.有一个命令可以对工作文件执行此操作(请参见屏幕截图),但对于当前打开的项目不是.
How do I use the keyboard to open a file, using its partial name, in the currently open project? I can't find a command in the Command Palette that would enable me to do this. There is a command that does this for Working Files (see screenshot), but not for the currently open project.
推荐答案
>
前缀用于在 VSCode 中运行命令.要打开当前项目中的文件,请按 Cmd
+ P
并键入所需文件的完整/部分名称.VSCode 使用模糊搜索,因此您甚至可以避免输入中的拼写错误.
>
prefix is for running commands in VSCode. To open a file in the current project press Cmd
+ P
and type the full / partial name of the wanted file. VSCode uses fuzzy search, so you can even get away with typos in your input.
这篇关于VSCode:在项目中打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!