开发者

Eclipse: Dot acts as wildcard in "open resource" filter on *nix

开发者 https://www.devze.com 2023-03-27 10:25 出处:网络
I\'ve noticed on my Mac and Linux machines that when I use Eclipse\'s \"Open Resource\" feature (ctrl-shift-R), when I enter a resource name, Eclipse treats \".\" as a wildcard.So, for example, if I t

I've noticed on my Mac and Linux machines that when I use Eclipse's "Open Resource" feature (ctrl-shift-R), when I enter a resource name, Eclipse treats "." as a wildcard. So, for example, if I typed "Account.java", Eclipse would list every file b开发者_如何学运维eginning with account, followed by java - AccountManager.java, AccountDao.java and so on. Is there a way to change it on Mac and Linux to behave more like I am expecting from Windows? On Windows, the dot isn't treated as a wildcard and only Account.java would be shown.


Open Resource filter is prefix based. So when you type "Account.java" it is actually "Account*.java*". To prevent prefix matching you need to type < or space character, e.g "Account<.java".

See Eclipse Open Resource docs.

Cheers, Max

0

精彩评论

暂无评论...
验证码 换一张
取 消