在 Eclipse 中搜索文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2957774/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Searching files in Eclipse
提问by aks
I want to search a file in Eclipse. What's the shorcut to open file search dialog box?
我想在 Eclipse 中搜索一个文件。打开文件搜索对话框的快捷方式是什么?
回答by BalusC
If you want to search in files: Ctrl+Hand then choose tab File Search
.
如果要在文件中搜索:Ctrl+H然后选择 tab File Search
。
If you want to search for resources: Ctrl+Shift+R.
如果要搜索资源:Ctrl+ Shift+ R。
If you want to search for Java types: Ctrl+Shift+T.
如果你想搜索的Java类型:Ctrl+ Shift+ T。
If you want more shortcut keys: Ctrl+Shift+L.
如果你想要更多快捷键:Ctrl+ Shift+ L。
回答by echox
There is no default shortcut to open the "Search a File" dialog directly.
没有直接打开“搜索文件”对话框的默认快捷方式。
Anyway you can use CTRL+ Hto open the "Search Dialog".
无论如何,您可以使用CTRL+H打开“搜索对话框”。
You can also use CTRL+ Shift+ Lto open the "Key Assist" which will show you all configured shortcuts as a kind of tooltip.
您还可以使用CTRL+ Shift+L打开“键辅助”,它会告诉你所有配置的快捷方式作为一种工具提示。
Pressing again CTRL+ Shift+ Lin the "Key Assist", you can directly configure your own shortcuts. Enter "File Search" for the filter and simply set your own key combination.
再次按下CTRL+ Shift+L中的“键辅助”,就可以直接配置自己的快捷方式。为过滤器输入“文件搜索”,只需设置您自己的组合键即可。
I often search for a file and want also to open it directly. So I use the "Search for Resource" Dialog called with CTRL+ Shift+ R.
我经常搜索一个文件,也想直接打开它。所以我用“搜索资源”对话框调用CTRL+ Shift+ R。
回答by user85421
Use the Window
->Preferences
menu and select the General
-Keys
tab to see and changeany key binding.
使用Window
->Preferences
菜单并选择General
-Keys
选项卡以查看和更改任何键绑定。
Shortcut for this: Press two times CTRL+ Shift+ L
快捷方式:按两次CTRL+ Shift+L
回答by Fredrik
There's also a plugin called MouseFeed that shows all keyboard shortcuts for the menu operations you do. You could even set it to prevent you from using the menu alternative and force you to use the shortcut.
还有一个名为 MouseFeed 的插件,可显示您执行的菜单操作的所有键盘快捷键。您甚至可以将其设置为阻止您使用菜单替代项并强制您使用快捷方式。
A good way to help you become quicker at using Eclipse.
帮助您更快地使用 Eclipse 的好方法。
Edit: The domain associated with the plugin seems to be gone now and replaced with a porn site. So at this point the status of the plugin is a bit unsure :)
编辑:与插件关联的域现在似乎已经消失,取而代之的是网站。所以此时插件的状态有点不确定:)