Emulate Netbeans behavior in Eclipse - eclipse

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).

Related

See Eclipse IDE component source code

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).

Eclipse on Mac OS X : Shortcuts are broken

I'm pretty new to Eclipse because I'm starting to learn Java Programming. I'm having problem with the editor.
I'm running Eclipse on an iMac with a German keyboard. The keyboard shortcut for "Redo" action is Cmd+Shift+Z.
When I use this shortcut, a tiny window in the right down corner pops up and asks if I want "Inspect" or "Redo"...
In the preferences, I have three different "Inspect", (just one was with a shortcut, but it was something like Cmd+Shift+I). Anyway, I erased it to be sure.
Afterwards I tried again, but the same little window asks me for Insect or Redo. Now I don't know what to do.
I'm having the same problem with Cmd+R ("Run" action). For "Run" there is another keyboard binding.
In Eclipse preferences, I could not find both commands that are on the same shortcuts. Or better I found them but they are separate.
Go to the Keyboard shortcuts preferences :
Eclipse > Preferences > General > Keys
and unbind or rebind whatever is giving you trouble.
In your case, go to Inspect and remove the binding for Cmd+Shift+Z.
In some cases, removing the binding for a key command will remove all bindings for it so after you do so, check out Redo and make sure it is still tied to the command.

When opening java files in Eclipse Juno, the editor seems to be minimised or hidden

I've installed Eclipse Juno SR1 and switched to my old workspace. When I open a java file in the editor, it seems to be minimized (or hidden). The titlebar shows the current file and the outline displays all methods.
This is much as described in the Eclipse Invisible Editor, however, the suggested solution 'Window > Reset Perspective' does not work for me.
Any ideas on how I can get the editor back in the window?
I have the same problem with previous version of Eclipse Juno (not SR1).
"Windows" -> "New Window" seems to bring back the invisible editor view.
Then just close the old one and restart eclipse to make sure it "remembers" the configuration.
Try Window > Reset Perspective to get things back to normal.
There are times when the editor or other views starts behaving erratic. For such situations do:
"Windows" -> "New Window".
Close the old one.
I had this problem in STS and then it contaminated my regular Eclipse in the same workspace. "New Window" helped, thanks!
You don't need to restart eclipse.
Just double-click your file inside the Package Explorer view. You will see it's name in the title bar, but it won't appear in the editor:
Now, just type Ctrl + w (in case of Windows).
Reopen your file, and it will appear in the editor:

How to disable eclipse4 built-in keyboard shortcut?

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.

Netbeans keyboard shortcut for navigating to next error marker in editor

Is there any keyboard shortcut key for navigating to the next error (red markers created in error stripe) in Netbeans editor?
As of NetBeans 8 there doesn't appear to be a way to navigate through errors exclusively in the editor. If you look at tools->options->keymap an action does exist for this (next error in editor), but the shortcut is blank. I set it to Alt+E on my IDE, this will navigate through all annotations - not just errors. So if you don't mind cycling through all hints, warnings errors, etc, this will work.
The closest I've been able to get for navigating specifically through errors is using the action items window. Add a filter for errors, then you can use Ctrl+. and Ctrl+, to navigate through the list (see How to display all compile errors in Netbeans as a task list?).
That would be Ctrl-Period ::: (Period means .)
Links to many shortcuts:
Highlights of NetBeans IDE 8.0 Keyboard Shortcuts & Code
Templates
134 Shortcuts for NetBeans 8 (Windows)
EDITED--URLs NOW VALID thru ver. 8
Add the Action Items window to your IDE. This lists all of your errors and is dynamic, so will be updated when you save.
From the menu bar: Window->Action Items.
(Took me forever to understand why when I would save, I wouldn't see any compile errors, but then it wouldn't run.)
Actually question is about "next error in editor". At least in my configuration (NetBeans profile) this function doesn't have any shortcut by default so if you go to Tools->Options->Keymap and in search field you write "Next Error in Editor" you can add any shortcut that fits the best to you
On a Mac things are different and there is no keyboard shortcut for navigating to a usage/compile error as far as I can tell.
You can go to Help -> Keyboard Shortcuts Card to see the full list of short cuts for your platform.
See https://netbeans.org/kb/articles/mac.html for info for macs and https://usersguide.netbeans.org/shortcuts.pdf for the default shortcuts for PCs.
No. there is no good and easy way on keyboard.
just clicking on those red marks (by mouse) is the fastest way. (it's not an easy/good way. but the best possible.)