There is a search everywhere shortcut in Intellij IDEA(double clicking shift button), I'm wondering if similiar searching can be done in Eclipse. I did some googling, but it seems I can't search files/code at the same time in Eclipse.
Any suggestions are appreciated.
For me, its a combination of:
Cmd+Shift+R : using wildcards like *, for the files
Cmd+Shift+M : for methods (also Cmd+O for a quick outline)
Cmd+Shift+T : for classes
I prefer keyboard shortcuts rather than the mouse, so these 3 shortcuts helps me a lot
No, the search everywhere (source code, databases, actions, elements of the user interface) from IntelliJ is (for Eclipse) split at least between:
searches (ctrl+H): you can define a search in files by default.
searches in shortcuts (ctrl+l): for dearching the list of key bindings
Control + 3 - search in all the settings. And my favourite Control + Shift + L (Only in Spring Source Tool Suite) - it's like Google for your source code. Is somehow similar to Symbol/ctag search in Intellij but it finds ALL occurences.
Both are very old features.
What you want is called Quick Search and can be activated using Ctrl+Alt+Shift+L
Related
Using Quick Switch Editor (ctrl+E) in Eclipse allows one to navigate trough currently open tabs.
Thing that bugs me is: you must use wildcard (*) to performe fuzzy search.
It looks like it's more convenient to use Open Type (ctrl+shift+T) functionality that support fuzzy search then Quick Switch Editor.
Is there any Eclipse configuration that I miss or plugin that will make my life better?
Kind regards.
I use AutoHotKey to automatically type * whenever I press Ctrl+E, which ends up being essentially the same as Quick Switch Editor using wildcard by default.
AutoHotKey Script:
#IfWinActive, ahk_class SWT_Window0
~^e::Send {*}
You could also set up something similar for "Open Resource" (Ctrl+Shift+R) and "Quick Outline" (Ctrl+O).
Quite some time past since I asked this question, but I think I have something to add now.
GotoFile plugin, I believe is good solution to above problem. It will perform fuzzy-search on all WorkSpace projects.
As it is it doesn't quite address 'navigate trough currently open tabs' problem, but I decided to improve it a bit. For example, if search term starts with '.' it will prioritize open tabs (search will be performed on all files, but open will appear on top; '.' itself will be ignored). Case sensitive fuzzy-search (with 'In' search term resource IndexPage.java will have priority over index.js). On startup -- just display list of currently open tabs (like Ctrl + E currently does).
Basically idea is to have 'single point of access' for QuickSwitchEditor, OpenType and OpenResource functionality. true, it will not replace them, but eliminate 90% of everyday use.
eclipse is good at autocompletion when static typing , when is dynamic typing ,eclipse failed to autocompletion ; in sublime ctrl+p ,type # and type 'method name'to find function/method list , It is a wonderful way to find the right method while coding dynamic typing language ;
the key point is :
the operation in sublime text 2 is very convenient ,all key type is in one input box ; never need to chage active file tab; we can focus on the active code file tab ;
is there any plugin in eclipse or vim which can search method of any file conveniently ?
In ST2, this feature is used to quickly jump to a method anywhere in your project.
In Eclipse, Control+Shift+R can be used to jump quickly to a "resource" (file) and Control+Shift+T is for jumping to a type (not method). Control+o opens a very useful and quick outline of the current file. It doesn't work project-wide.
I'm not aware of something that works exactly like ST2's feature. Did you search the marketplace?
In Vim, FuzzyFinder, Command-T and CtrlP all allow you to navigate through your project using fuzzy matching. They can be setup to use your tags file. AFAIK, there's no plugin that provides exactly what ST2 provides.
From your question I'm not sure you use it as intended: it sounds like you use it to show a list of methods in some file in your project in order to use the right method in your code. This sounds a lot like you'd benefit from autocompletion to me.
Being an IDE, Eclipse shines on that front: its "code assist" window will show you where the suggestion is defined as well as its type.
Vim's "omnicompletion" is quite limited compared to an IDE but, depending on your language and using some third party scripts, it can be made quite powerful.
Is there a hotkey for searching for references in IntelliJ when using Scala?
In Eclipse, when using the hotkey CTRL+SHIFT+G on a name, a search for references starts. This is very usefull to find where a certain method is used. Is there anything similiar in IntelliJ when using Scala ?
Ctrl+Alt+F7: Show Usages; displays pop-up with usages.
Alt+F7: Find Usages; opens the Find view, displaying usages in various ways (such as by methods and by files).
Found by doing Ctrl+Shift+A, then typing find, and seeing Show Usages and Find Usages listed. I tried search first, but that only showed settings. Now, I knew IDEA called it Usages, not References, but I avoided searching for that because you wouldn't know to search for that.
I think in version 12 in Ubuntu Linux it's Control + Alt + the number key 7 rather than F7.
I find it extremely useful to use the Ctrl(cmd)+o shortcut on Eclipse to find a member field or method in a class (and use it again to get the ones from the super class).
However, I would like to know if there is a similar way to quickly search in the project and/or workspace for a field or method you know the name of but not where it is (similarly to how it is done to find a type Ctrl(cmd)+Shift+T or a resource Ctrl(cmd)+Shift+R).
If is not available where can I request it?
ctrl+o (cmd+o) opens the quick outline where you can search for a method within the current class.
Pressing ctrl+o again extends the search scope to the complete class hierarchy.
The closest thing I know of is the Java Search, which allows you to specify searching for a method, field, class, etc. If you're in the Java or Java Browsing perspective, Ctrl+H will open the Search dialog with Java Search as the selected type.
If you want to request a feature or enhancement, enter it into Eclipse's Bugzilla. Keep in mind that the backlog of feature requests is HUGE, so the most effective way to get yours noticed is to take initiative and submit a patch.
With the ctrl+h you will have some more options to search.
Under java search option you may find search for type, method, package, constuctor, field.
Also you may find "Limit To" option to narrow your search result and get precise search result!
The quickest way that I'm aware of is by using ctrl+h to bring up the Java search dialog.
If you are using mac cmd + shift + l will open a search box where you can search for any variable or method through out the project.
ctrl+h will bring up java search option. Enter your string and see. It also has different patterns like .java, .jsp, then select scope then search.
There's no way to do this in Eclipse. When you search for a method that's in a JAR Eclipse will not find it unless you already had the folder open.
You have to play around with it and use indirect ways of finding the method.
I am trying to locate a list of shorcuts so I can print it and learn a couple every day till I master not using the mouse.
I know about Eclipse Shortcut Overview but this is using emacs bindings, and I am using the default shorcuts.
I am not looking for an blogpost mentioning 10 nice shorcuts, I want a comprehensive list (maybe not complete but near, whatever fits in one page printout)
I am using eclipse 3.6 on windows but a list of 3.5 etc would help too.
I always found Ctrl+Shift+L the only first shortcut I needed to know with Eclipse.
Wherever you are, type Ctrl+Shift+L, and the list of all shortcuts available to you given the current context will pop-up.
See this article for reference.
in Preferences > General > Keys
you got them all (dunno about EMAC ..)
and - but - can export them to csv !