Eclipse - search for resource - limit extension to match .js NOT .jsp
In Eclipse, when I press Ctrl+Shift+R to bring up the 'Open resource' dialog window, I can't figure out a way of searching only for javascript files (.js), as any search string I enter will always yield .jsp files as well.
I tried abc*.js
(explicit file extension does not work, as still JSPs are returned), abc*.??
(trying to limit the length of extension to any TWO characters, still returns JSPs)... it's a bit annoying. Is 开发者_运维技巧there any way to get the window to return .js files only?
Wow, I managed to resolve this myself. It doesn't seem like the correct thing for Eclipse to do (naughty Eclipse, naughty, you should be ashamed of yourself) but it does work like a charm - it's as simple as typing a <space>
after the search term.
So, instead of searching for "abc*.js" (which would yield .jsp results also), one can just type in "abc*.js " (followed by a space) and now only javascript files are presented in the results list. Voilà!
I asked about this in the Eclipse forums, and found a real solution.
精彩评论