在Eclipse中使用通配符与内容辅助 [英] Using Wildcards with Content Assist in Eclipse

查看:961
本文介绍了在Eclipse中使用通配符与内容辅助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在Ecilpse中使用内容协助时是否有任何方法使用通配符。例如,今天我想找到类别路径中以异常结尾的各种类。我尝试了以下组合,但是在每个实例中,内容协助仅引入以异常开头的类或接口。

 
.Exception [cntl ] + [空格键]
?异常[cntl] + [空格键]
#Exception [cntl] + [空格键]
*异常[cntl] + [空格键]

请注意,我尝试谷歌搜索,但没有找到任何答案基于以下搜索条件eclipse通配符内容协助。

解决方案

我不认为你可以。



这不完全是你以后,但你可以打开打开类型对话框,并在那里使用通配符。 Ctrl + Shift + T将打开对话框。



您也可以在打开类型对话框中使用类型名称中的大写字母。例如键入NPEx会引发NoPermissionException和NullPointerException。


I would like to know if there is any way to use wildcards when using content assist in Ecilpse. For example, today I wanted to find the various classes on the classpath that ended in 'Exception'. I tried the following combinations, but in each instance content assist only brought up classes or interfaces that started with 'Exception'

.Exception [cntl]+[space bar]
?Exception [cntl]+[space bar]
#Exception [cntl]+[space bar]
*Exception [cntl]+[space bar]

Please note I did try googling this, but didn't find any answers based upon the following search criteria 'eclipse wildcard content assist'.

Any assistance would be appreciated.

解决方案

I don't think you can.

It's not exactly what you're after, but you can open the "Open Type" dialog and use wildcards there. Ctrl+Shift+T will open the dialog.

You can also use just the capitals from the type name in the "Open Type" dialog. For example typing NPEx will bring up NoPermissionException and NullPointerException.

这篇关于在Eclipse中使用通配符与内容辅助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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