It seems that you can hover mouse over any Eclipse IDE component and press a keyboard shortcut to see the component source code. What is that keyboard shortcut?
Guess you're talking about the "Spy": Use alt+shift+F1 for the Plug-In Spy and alt+shift+F2 for the Menu Spy. (or enter "Spy" in the Quick Access field to see your specific shortcut, if it should differ).
Related
I'm currently switching from Netbeans to Eclipse. In Netbeans, pressing Alt+Enter on a line with an error or warning will cause a dialogue to pop up with suggested fixes.
In Eclipse, the same dialogue can be shown, but I have to hover over the error/warning with my mouse. The "focus" hotkey doesn't seem to do anything except allow the dialogue to remain open.
Is there any way to emulate the Netbeans dialogue behavior in Eclipse?
In Eclipse this feature is called Quick Fix (Ctrl+1): see Eclipse help: Quick Fix and Quick Assist
Shortcuts can be changed in Window > Preferences: General > Keys (by default Alt+Enter is bound to the command Properties).
Is it possible to have IntelliJ/Cursive display a pop-up with s-form's definition and documentation when that s-form is hovered over with a mouse, like it's done in Eclipse? Ctrl+Q seems to bring up the window, but I'd like for it to open up automatically without me hitting a shortcut. Is this a configurable setting or something? Also, what is a similar key combination to bring up a source pop-up?
Thank you in advance.
No, there's no way to do this automatically on hover. You can see the source pop-up using View->Quick Definition - the keybinding will depend on the keymap and platform you're using. The keybinding should be shown in the menu, otherwise you can search for "Quick Definition" in Settings->Keymap.
Eclipse 4.2 seem has some built-in shortcuts, such as Ctrl+P, Alt+C, Alt+X etc, you can not find them from "Window->preferences->General->Keys". I'd like to re-define these shortcuts, e.g. bind Alt+X to run maven build, but when i press Alt+X, at the bottom right corner of Eclipse, it flashes quickly and my mouse is out of control, i think this is because of shortcut conflict.
Anyone who know how to disable the built-in shortcuts? Thanks.
Edit:
Ctrl+p is only bind to one action.
When i click Ctrl+p, the bottom right corner show, this message is from from eclipse:
Well, the above is the good situation--at least you can choose which action to run. for Alt+P, Alt+c you have no chance to choose, eclipse is flipping and you are out of control.
Are you certain there isn't something in your OS or another application that is handling those keyboard triggers? If you assign a keyboard shortcut in Eclipse's Preferences, it will indicate when there is a conflict; if you don't see that, then it's not an Eclipse shortcut.
I found the root cause of this problem, i import all my keys from Eclipse 3.7 to 4.2, most of them works, however some of them conflict but Eclipse fails to show the conflict shortcuts, Let's say, Ctrl+P, this is print shortcut for eclipse by default, in eclipse 3.7 i bind Ctrl+p to another command, after import, eclipse 4.2 shows just like 3.7(see above), however in fact it still has conflict even though it does not show the conflict. I think this might be an eclipse bug. I'm the one who use shortcut extensively. Hope this help others with migrating shortcuts.
I would hold down Ctrl and Click on the name of the class in my build path to navigate to that Class.
Please help me in finding the keyboard shortcut without using the mouse click.
Keyboard shortcut to navigate into classes (or variable declarations) is F3.
See this article for more useful shortcuts (or just google for another page about eclipse shortcuts)
Once and for all, ban the editor (source code editor) windows from mingling my 'DDMS' perspective. How to do that ?
EDIT:
Eclipse IDE for Java Developers
Version: 1.2.2.20100216-1730
Build id: 20100218-1602
with the only available updates being for Mylin and Android something
You can minimize the editor area using a button in the top-right corner of the editor area. That let's you see that it's minimized in the window frame (along the right side) and easily Restore it.
Alternatively, you can set up a keyboard shortcut to really toggle the editor area visibility. Open the Preferences and navigate to General > Keys (or press Ctrl/Cmd + Shift + L twice to jump right to the Keys preferences). Search the commands for area and then assign a keyboard shortcut to the Toggle Editor Area Visibility command. Note: for older versions of Eclipse (3.5 and older), the command is named Hide Editors.
There is no way to permanently remove the Editor Area from a Perspective; that's fundamental to how Eclipse is designed.