How can I disable the hint window in EClipse - eclipse

When I hover over some type,etc in eclipse it shows a big yellow hint box for it and shows the information of the type, what it is used for,...you know that yellowish hint box that appears..well that is certainly good info to know but it gets very annoying, whenever I click on some line of code in eclipse it shows my this yellow hint box that covers half of my codes and i cannot even read them until i press another key to get rid of it...is there a way I can change the default behavior of eclipse so it does Not show that by default and it only shows it when I want it to show like pressing the combination of some keys that I define for it.

For Java code, there are preference settings for this:
Window | Preferences | Java | Editor | Hovers
You can disable the hovers you don't want, such as any that are checked but don't have a modifier key assigned. Alternatively, you can assign modifier keys to the ones you like/use so they only appear when hovering while that key is pressed.

Related

Access mouse over hover in VSCode

Is there a way to access the mouse over popup in VSCode via Keyboard and navigate in it?
I often use the mouse over to get the namespace of function or variable ...
So I want to place the cursor on "bar", popup the hover (Show Hover Ctrl+k Ctrl+i), focus it, mark some text (eg. namespace::functioname), copy and close the hover.
namespace foo{
void bar();
}
First problem, the hover doesn't get the focus and I don't know how to focus it. But there is another feature "Show defintion preview hover", which actually gets focused. So far so good. But I still cannot mark or copy text inside the hover via keyboard.
Show hover (not focused):
Show definition preview hover (focused):
But I still cannot mark or copy text inside the hover via keyboard.
That should change with VSCode 1.68 (May 2022):
Lock hovers to more easily mouse over them
Some custom hovers cannot be moused over and others are tricky to mouse over without hiding it because of other things in the way (eg. like a scroll bar).
Holding alt while a hover is active will now "lock" it, giving it a wider border and preventing moving the mouse outside of the hover widget or whatever triggered it from hiding it.
This is primarily an accessibility feature to make hovers play nice with screen magnifiers but it is also useful for copying text from certain hovers.
Note that this feature only applies outside of the editor because editor hovers can always be moused over unless specified otherwise via a setting.
This will be helpful for other views (debug, terminal, ...) where variables with their popup can appear as well.
In the editor, see microsoft/vscode issue 63296
ctrl+K ctrl+I to show the hover and focus it
ctrl+A to select all the hover content
ctrl+C to copy to clipboard
It does indeed work for me (on windows) for the first two steps, however ctrl+C does not copy the text selected with ctrl+A.
It seems like there are two different selections possible in the hover:
ctrl+Aselects everything with a dark blue.
When selecting some text in the hover with the mouse (i.e. press the left mouse button while near/over a char, move mouse, release left mouse button) the selected text is shown in a lighter and brighter blue.
The two selections can coexist.
ctrl+C always copies the text selected with the mouse, or nothing if there's no such selection, no matter whether a ctrl+A selection also has been done.
If there's only a ctrl+A selection, ctrl+C doesn't copy anything.
The two selections can be selected in any order. The order doesn't change the behavior.
Think I found out what you were after.
The shortcut is: Ctrl+K Ctrl+I
See: Trigger advanced hover information with keyboard
please try control + mouse click
it may be help you

PhpStorm - show detailed doctag infos

In NetBeans we can show detailed infos about declarations if we hold CTRL and hover the mouse over the function name.
How does this work in PhpStorm?
I only get few infos on PhpStorm:
I only get more infos if I click on the function link in the yellow box which you can see in the screenshot.
In general -- just place caret on the element you are interested in (function/class/identifier/ect) and invoke View | Quick Documentation (Ctrl + Q using Default keymap).
https://www.jetbrains.com/help/phpstorm/2016.3/viewing-inline-documentation.html
If you want this documentation window to be always visible -- just pin it (using Pin icon in top right corner). It will show the info on most recently invoked element.
If you want this info to be automatically updated for the element that is currently focused (based on caret position) -- activate Auto-update from Source option there.
If you want this documentation window to appear automatically on mouse hover -- activate Settings/Preferences | Editor | General --> Show quick documentation on mouse move option (delay is configurable).

eclipse doesn't show variable value tooltip

I've carefully worded the subject of my question so it is right on spot:
in Eclipse CDT I don't see the tooltip that displays the value of a variable. I.e. when I hover over a variable in the Debug perspective then the tooltip that's supposed to display the value of that variable doesn't appear.
I've played around with the C/C++ -> Editor -> Hovers settings and what's confusing is that I can observe that whatever I'm changing there does actually have an effect. In particular when I enable either the "Combined Hover" or the "Debugger" hover I see that eclipse is talking with gdb when I hover over a variable and see gdb's response in the console with the "GDB traces". E.g. hovering over i yields:
540,068 74-data-evaluate-expression --thread 1 --frame 0 i
540,068 74^done,value="0"
So far so good, but I don't see the corresponding tooltip. I can press F2 and that will open a simple tooltip showing "i = 0", but that's not quite what I want. And it's not like tooltips in general aren't working: when I enable modifier keys for the "Combined Hover" and the "Debugger" hover and leave the "Source" hover without modifier key then hovering over a variable will display it's declaration in a tooltip as expected. But reverting this setting or pressing modifier keys that would trigger the variable value tooltip still has no effect. Other than, as mentioned above, that gdb traces shows me that eclipse is informed what it's supposed to display. Oh and by the way: I do remember for sure that this worked once. I also have a very faint recollection that this got on my nerves at some point and I have an even fainter recollection that I may have done something to disable those tooltips. But now I'd like to have them back.
For the records, this is a list of what I've done: quit the debugger, restarted it, quit eclipse, restarted it, I've even logged out of kde logged back into gnome, tried it there, logged out of gnome and logged back into kde, tried it again, "restore defaults" in C/C++ -> Editor -> Hovers and C/C++ -> Debug -> GDB. No luck. I think these were all the tips I could find On The Internet that apparently solved similar issues for other people. sigh
Any hints would be immensely appreciated. Thanks!

How do I get rid of the Eclipse Find/Replace Bar

For searching a document, I like using the floating Find/Replace window that pops up. Lately, however, hitting command-F pulls up this Find/Replace bar at the bottom of the editor window. I suppose I wouldn't mind it so much, except instead of selecting the text to search it puts the insertion point after whatever I've searched for before. Very annoying. Clicking on the magnifying glass pops up the other Find/Replace dialog.
How can I get the normal dialog to pop-up by default?
I should add that for some reason search is no longer working in Preferences, so I can no longer just search for "Find" to locate the setting I might need to change. So you'll have to give me the exact location.
A little more experimenting reveals that this is PyDev-specific behavior but I still can't find the setting that needs changing.
type Ctrl-Shift-L twice brings up Preferences window.
In Preferences window: type 'find bar' in the search field. This finds 'Find bar' in category 'Aptana Studio' (assuming you have Aptana Studio included in Eclipse). Click this entry 'Find Bar' to bring up the 'Find Bar' settings page.
On the Find Bar settings page uncheck 'Use custom find bar on Aptana editors' See shot.
This did the trick for me!
I added a feature request to the Pydev tracker for a setting to suppress the find bar: https://sourceforge.net/tracker/?func=detail&aid=3097964&group_id=85796&atid=577332
Could you make sure the 'command-f' is binding with menu item 'edit' - 'find/replace...'?
Might other plug-in hook the key binding.
And another way is using 'spy' to see which one contribute it. Focus on the search widget, then click 'alt - shift - f1'.

How to Display Current Function in Eclipse

I miss a certain functionality in Eclipse. I would like to know the name of the current function the cursor is currently inside. This is useful when browsing unknown code using the search function, for example.
Any idea how to show it? Maybe a plugin?
I'm using the "Toggle Breadcrumb" option from toolbar:
It shows a nice breadcrumb, ending with current function name.
It's quite handy for me, as Outline becomes cumbersome to use if you have zilions of functions.
It produces the following structure above your Java Editor (truncated at the picture below):
The "Outline" view shows the current function.
It may be necessary to enable the 'Link to Editor' option in the Outline View dropdown menu. This might be off by default for CDT.
I was looking for something similar (Xcode-like bar at the top showing the current function, where you can also go to another function by clicking on it to open a popup list of functions). Here is what I settled on with Eclipse 3.5.1 CDT:
I moved the Outline view to the top, resized it to make it a 1-line horizontal strip (don't make it too narrow), and selected "Link With Editor" in its menu, so that it always shows the current function. However, this doesn't open a popup list like Xcode. For that functionality, I assigned a shortcut to the "Show Outline" command which does open a popup list of all functions.
The Eclipse function 'show outline' will pop up a list of outline objects, and it will highlight the object your cursor is inside in grey. It's typically bound to 'ctrl-o' (the letter 'o', not zero), but you can re-bind it as you see fit. I'm running Eclipse with the CDT plugin and it works pretty well for me.
To enable the breadcrumb invoke Toggle Java Editor Breadcrumb in the toolbar or press Alt+Shift+B in the Java editor.
You can also display the Quick Outline (ctrl+o). This way you see the context quickly without having to have a permanent Outline Window linked to the Editor.
Use the "Link With Editor" option on the outline menu
Press Ctrl+o (cursor is currently inside a function at a particular line).
It highlights the current method, or name of the class if the cursor is outside the method body.
You can click on highlighted method.
It has got inline search feature ...start typing name of the method to navigate to the specified method or method with matching search pattern.
If you press again Ctrl+o to shows the inherited members/methods.
Using outline with "link with editor" option worked also for me, thanks!
Just an addition, you can move outline pane in to the same window group as search, progress etc. saves the space in your perspective instead of keeping it at another group.