I used long time Eclipse. In Eclipse it possible to press F2 and hints (e.g. about error) don't disappears and I can also copy the message directly from hint.
But in IntelliJ Idea (start to using now) hints are displayed for few milliseconds.
Does it possible fix by settings or changes in config file?
Thanks.
Look at Help > Default Keymap Reference in the IntelliJ menu. Perhaps Ctrl-q or Ctrl-F1 are what you're looking for?
You can always remap keys in IDEA and not all functions have a keystroke by default, but they can be added.
Related
After a long period of creating apps with Android Studio I returned to Eclipse to program a pure Java application. Of course, I have noticed large differences in terms of auto completion between IntelliJ IDEA and Eclipse but IntelliJ is no alternative for me because of various reasons.
That is why I started to change the settings in Eclipse, inter alia, for the content assist. I want to have suggestions for variable names too, without having to write a dot first. As you can see in this image, I have changed the auto activation triggers to ._#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ as suggested in another thread on Stack Overflow.
The problem is, if I write short variable names like d it completes them automatically to something different (in this case DEFAULT_CURSOR) when I press the dot key. To avoid this, I have to choose the variable first, before pressing the dot key.
However, having to do it this way is a large waste of time. Is there a possibility to use the suggested variables or methods only when I have pressed the enter key, just like in IntelliJ?
Maybe there is an option to bind the dot key to the closing of the content assist?
No, Eclipse and IntelliJ are different and IntelliJ's level of auto completion is unique to itself. If you are comfortable with it, you should use it and then copy and paste to eclipse for windowbuilder. Also FYI there is a free alternative to windowbuilder for IntelliJ, you can read about it here: WindowBuilder equivalent for IntelliJ?
so I just downloaded eclipse and it came with a basic hello world program, and the auto complete works on this. It will work with the auto trigger "." and by using ctrl+space, and it shows all the suggestions you would expect. When I started my own project though, the auto correct must be called to work and there are not any suggestions in the auto complete drop down box. Does anyone know what could cause this????
2 things come to mind.
1) make sure setting in the preferences page under Java -> editor -> Content Assist is enabled. and that the delay is short.
2) check your build libraries and path are correct. it may be having trouble finding any methods that you can use.
just a dumb question but its hard to search because there are so many topics about eclipse auto complete and its hard to find something matching to my problem.
so there problem is:
If i write :
"MyClass MyVarName" and then hit space, (to add the " = new MyClass()")
Eclipse automatically adds : "MyClass MyVarName_MyClass " or something like that to the variable-name..... (just without underscore.... stackoverflow just wont to mark as bold else...)
That is really annoying, and because i imported the eclipse configuration of a co-worker... I really don't know how to disable....
thanks in advance
//EDIT:
It seems to be the same effect as i type "MyC" and then press space, it also completes the "MyClass" and not add just the space... its like hitting enter. but i dont want to automplete on space...
i also didn't found a custom key option on space or else.... :(
In Window->Preferences->Java->Editor->Content Assist:
check the box at "Disable Insertion triggers except 'Enter' ".
I've found all other answers to also disable the auto-suggestion features of Eclipse, which are rather useful in my opinion.
Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced: In the top list box, uncheck "Java Non-Type Proposals", "Java Proposals" and "Java Proposals (Task-Focused)".
I cannot find a way to solve it decently.
So, just, press Esc before press Space.
Look into
Window -> Preferences -> Java -> Code Style
There you can see Conventions for variable names. Make sure all prefixes and suffixes are empty. Also check in
Window -> Preferences -> Java -> Editor -> Content Assist
Looks to me that you might have the Control key pressed without knowing it. Happens sometimes on laptops with Fn key that Fn+Ctrl kind of "locks" the Ctrl. I conclude this because Eclipse auto-complete feature should not work on pressing Spacebar only. Normally you should get the effect you describe only by pressing CTRL+Spacebar. Thus, try pressing Fn+Ctrl to unlock the "pressed down" Ctrl key and then you should be fine.
In Window -> Preferences -> Java -> Editor -> Content Assist, there is the option "Auto Activation". If you have it checked, it will activate even if you don't press ctrl and you'll see that behaviour. Uncheck it and you'll only get content assist when you use ctrl+space.
S!
My suggestion, and what I do, is similar to GreenEyed's approach but instead of disabling auto activation put it to a reasonable value for the delay, like 3000 (3 seconds).
I had plain Eclipse IDE for Java EE Developers and installed the Spring plugin to try it out. I didn't like it and didn't use it so I uninstalled it. After uninstalling, it still had the setting that you describe. So annoying!
After search for hours, I finally found out how to disable it.
Windows > Preferences > Java > Editor > Content Assist
Set Auto activation triggers for Java to: .
That's all that's necessary.
If you want to restore other Eclipse defaults regarding content assist:
Set Auto activation delay to 200.
I had previously disabled Java Proposals, Java Proposals (Task-Focused), and Java Type Proposals, as others recommended, but these should actually stay checked, so I re-enabled them.
When I press Ctrl-S to save my Java file in Eclipse it's jumping to the function name. This is very annoying. Someone know what to do about this?
Go to Window->Preferences->General->Keys (you can also search for Keys in the main Preferences window). You most likely have added a binding which makes eclipse jump to the function name when you press ctrl+s.
Another place to look is Window->Preferences->Java->Code Style->Clean Up and Window->Preferences->Java->Editor->Save Actions. That is where all actions are defined which happen when you save/clean up a document.
Try looking at your keyboard bindings. I certainly don't have this problem on either of my Eclipse installs. You might have Ctrl-S assigned to two different actions?
This was really annoying problem for me also.
Solved it by going to Preferences->General->Workspace and unchecking "Refresh on access" checkbox.
I had a similar problem with Ctrl+C malfunctioning in Eclipse.
Here is a similar question regarding it.
Maybe try upgrading to the latest version if the above solutions do not work.
Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable's value. Instead, hover behaves as if I were in normal Java perspective:
alt text http://michaelzanussi.com/wp-content/uploads/2009/11/debug_hover.png
I've tried cleaning the project, re-importing it, etc., all to no avail. Anything I'm missing here?
I went to Window - Preferences - Java - Editor - Hovers, hit "Restore Defaults" and "Apply" and that fixed it for me, even though nothing actually changed in the settings...
Go to Window - Preferences - Java - Editor - Hovers.
Is "Combined Hover" selected? Uncheck it; apply; close the window; restart debugging session; go back; check it again; apply.
If the above doesn't help, you can check "Variable Values" option and specify a modifier key for it. Not as convenient as "combined", but should work.
I had this problem too once, I "just" had to restart eclipse, after that the hover mechanism worked again.
The problem was "fixed" by renaming the package.
For whatever reason, this refactoring triggered something in Eclipse, and immediately I was able to view variable values during debugging. Also, when I go back into Preferences under Hovers, I can now see the "Variable Values" option.
I had a similar issue and when I came across this question. My problem was that windows hover time was set to 20s or so (you can test if this is your problem by putting the mouse on a mistake and waiting for a min or so). The registry key "MouseHoverTime" was set to a large value of 200000 ms (normally 400). Fix it by going to start -> run -> "regedit" -> HKEY_CURRENT_USER\Control Panel\Mouse double click "MouseHoverTime" and setting it back to 400.
I think this had been done on my computer a while back to prevent hover popups in another program. Anyway, sorry that my answer doesn't directly apply to this question, but I'm hoping it'll help somebody like me that comes across this thread with a similar issue.
For C++ project, please add -ggdb -0g to the compiler option. Hope this solution can help eveyry C++ programer face with the same issue.