It's easy enough to find files containing a given string using CTRL+SHIFT+F or right-click->Find in Folder, but is there a way to search for a string in the name of the file or directory itself?
使用CTRL + SHIFT + F或右键单击 - >在文件夹中查找,找到包含给定字符串的文件很容易,但有没有办法在文件或目录本身的名称中搜索字符串?
3 个解决方案
#1
Ctrl+P opens Goto Anything, one of the most useful features IMHO.
Ctrl + P打开转到任何东西,恕我直言,最有用的功能之一。
#2
Yes, you can quick-find via Ctrl+p on Windows. I would highly suggest also installing the AutoFileName package via PackageControl.
是的,您可以在Windows上通过Ctrl + p快速查找。我强烈建议也通过PackageControl安装AutoFileName包。
#3
I'm on OS X so if you are on Windows or linux your key combo might be different but I use command + t which opens the show files overlay where I can type in any part of a file name in the current project. The overlay lists all files and filters as I type.
我在OS X上,所以如果你在Windows或Linux上,你的关键组合可能会有所不同,但我使用命令+ t打开show files overlay,我可以在当前项目中键入文件名的任何部分。叠加层会在我输入时列出所有文件和过滤器。
I think this is the same as Goto anything command + p but I've always used t
我认为这与转到任何命令+ p相同,但我总是使用t
#1
Ctrl+P opens Goto Anything, one of the most useful features IMHO.
Ctrl + P打开转到任何东西,恕我直言,最有用的功能之一。
#2
Yes, you can quick-find via Ctrl+p on Windows. I would highly suggest also installing the AutoFileName package via PackageControl.
是的,您可以在Windows上通过Ctrl + p快速查找。我强烈建议也通过PackageControl安装AutoFileName包。
#3
I'm on OS X so if you are on Windows or linux your key combo might be different but I use command + t which opens the show files overlay where I can type in any part of a file name in the current project. The overlay lists all files and filters as I type.
我在OS X上,所以如果你在Windows或Linux上,你的关键组合可能会有所不同,但我使用命令+ t打开show files overlay,我可以在当前项目中键入文件名的任何部分。叠加层会在我输入时列出所有文件和过滤器。
I think this is the same as Goto anything command + p but I've always used t
我认为这与转到任何命令+ p相同,但我总是使用t