Sublime 打开文件热键

Sublime open file hotkey

我知道我可以使用 'Ctrl + p' 来查找文件并打开它。但它在所有项目中搜索文件。只在当前项目中搜索文件的方法是什么?

Ctrl+P 键绑定打开所谓的“GoTo Anything”。 Sublime Text Unofficial Documentation on GoTo Anything 状态(强调):

As you type into Goto Anything’s input area, names of files in the current project will be searched, and a preview of the best match will be shown.

再往下 in the documentation in the "Sidebar" section 它指出:

The sidebar provides an overview of the active project (more on projects later). Files and folders in the sidebar will be available in Goto Anything and project-wide actions like, for example, project-wide searches.

Projects and the sidebar are closely related. It’s important to note that there’s always an active project, whether it’s explicit or implicit.

我敢打赌,您当前的活动 Sublime 项目包含应该移动到单独(显式)项目的文件,这就是为什么它们被包含在搜索结果中的原因与您的意愿相反。要了解有关项目的更多信息,请进一步阅读 the section titled "Projects" 中的文档。

也许你可以试试这个:Shift+Command+F,然后你可以输入搜索关键字如下:

Find: Please enter search keyword

Where: Select the project location