Is there a way to add a delay to eclipse tooltips? - eclipse

I've found this article about using the shift key to make the tooltips popup when you want them to. This works ok, but I was wondering if there is a way to just add a delay to the tooltip. I like the default hover behavior, it's just a bit too eager on the display. I'm using Helios on Windows.

Excellent question!
There doesn't appear to be a control in Eclipse to do it, but these two blog entries:
http://untamedmind.wordpress.com/2008/11/08/changing-the-mousehovertime-add-delay-on-the-tooltips-pop-up/
http://dandar3.blogspot.com/2008/09/tooltip-delay-in-windows.html
both say it can be done in the windows registry. Caveat: I have not tried this.

Eclipse tooltip delay is derived from Windows, so if you change the delay of windows by editing registory it will show delay on eclipse as well.
In Windows -> Start -> Run -> regedit.exe
Go to below path in registry.
HKEY_CURRENT_USER/Control Panel/Mouse/
Modify value for Key MouseHoverTime
MouseHoverTime : 600
NOTE : The value is in miliseconds, for me it was 8 miliseoncds and I
changed it to 600 miliseoncds.
System restart required after changing value in registry
OR
You can also assign shortcut key to get the tooltop when ever you want. Please refer below link
Link

I suggest to turn off hovers by default, and define a customKey in Eclipse->Preferences if necessary.

Related

right click context menu in vs code executes immediately

When I right click in the editor, vs code executes whatever menu item the cursor happens to be over. It happens far too fast for me to make my actual choice known.
I have already spent 30 minutes trying to find a solution. If you search for "right click" in the Command Palette, you are told there are no matches. You don't get any hits in the docs, either. Please advise. Thank you.
It has been reported that the situation you mentioned is a bug in the repository on GitHub. It is reported that Visual Studio Code works fine when zoom is disabled.
You can update the following setting to override this behavior:
"editor.mouseWheelZoom": false
Or you can update the mouseWheelZoom setting from the pop-up window by using the shortcut CTRL + , to go to Settings.
It's crazy, but this is still an issue for Linux users after so many years. Especially, when using a Laptop with touch-pad it makes VSCode frustrating to use. The problem occurs when you use "native" window style (you can tell, because the theme will not be applied to context menus) and have a non-default zoom.
The GitHub issue that #sercan linked to has a few solutions. In order to save you some time, there is basically two things that I found work and make sense:
Set your zoom level to default / 0. In settings.json add: "window.zoomLevel": 0 This works with all window styles, but obviously is not always viable
Change the title bar style from native to custom. In settings.json add: "window.titleBarStyle": "custom" This will change how the title bar but also the context menus look. Setting this, you can zoom in again

eclipse shortcut publish everywhere

I would like to change the publish shortcut behaviour to apply to every window i work.
This would remove the need to be in the server view to use this shortcut (CTRL+ALT+P)
So far I followed this post: eclipse key bindings everywhere
Setting "when" to "in windows" did not work. I guess because the shortcut is still part of the category "server"
How can I change the category? Is there another way to fix this?
This is not going to work. The command handler for the Publish action (org.eclipse.wst.server.ui.internal.view.servers.ServerActionHandler) expects the current selection to be a server and doesn't do anything if it is not. So you have to be in the server view for it to work.

Sublime - Activate/Deactivate - Auto Save on Modified -- Plugin

I am already aware of the user-defined ignored packages setting in SublimeText2. Is there a way to modify this plugin -- e.g., with a keymap assignment -- to activate or deactivate this useful autosave feature? Perhaps chaining a plugin to the package control enable / disable feature, and assigning a keymap?
Here is the link to where I first discovered this plugin: Is there a way to autosave on each keystroke in sublime?
import sublime, sublime_plugin
class SaveOnModifiedListener(sublime_plugin.EventListener):
def on_modified(self, view):
view.run_command("save")
You can do this without relying on the package control commands. I can give you the answer, but I know you have been exploring writing plugins, so this might be a good exercise. It's pretty simple. Here are a couple hints though.
In the on modified command, you can check for a setting. You can give it a default value (I would do False) for if the setting does not exist. You can either write a text command to toggle the setting, or simply create a key binding with the toggle_setting command. Both will work, though if you write a command you can do something like create a status message so you know if save on modified is active or not. For information on toggle settings, see http://www.sublimetext.com/docs/2/settings.html.
If you just want the answer though, just let me know and I'll post it.
You can do this:
Go to Preferences -> Settings
Add the following line:
"save_on_focus_lost": true,
It would not automatically save the current file, however it would when you change the focus on other windows, Alt + Tab to terminal for example.

Eclipse PDT, XDebug Variable Watch Details only shows 1000 characters

I am debugging using Eclipse PDT with XAMPP
This question is related to this item:
Variables viewer on Eclipse debugging truncates the string values
I am having the same problem as in that link.
I watch a variable and in the Expresssions tab, I can only view about 1000 characters in the "details" window.
If I right click and use 'copy expressions' I get the same 1000 chars.
I have also right clicked the details pane... Max Length and tried setting it to 0 or 30000 (my data is about 20k) and neither changed the max of 1000.
This defeats the whole purpose of me spending 2 days to get Eclipse setup for debugging... If there is no workaround for this, can anyone suggest a PHP debugger that will not have this limitation?
I was going to try the Zend debugger, but saw a video that suggested it uses the same exact Expresssion/Detail pane to show its data... can anyone confirm/deny this?
Thanks!
In the Variables view you right-click on the variable and select Change value. If your variable is huge you have to wait a few minutes (in this case Eclipse doesn't respond to commands) but in the end Eclipse will show your variable entirely.
I tried just about everything imaginable... I believe this is a bug in Eclipse that should be fixed, but anyway, I finally just create a new test case that eliminates me needing to debug a 20k piece of data...
There isn't an option to set no limit but it is possible to increase the limit within the XDebug config.
Within Eclipse go to
Window -> Preferences -> PHP -> Debug -> Installed Debuggers.
Highlight XDebug and click Configure.
Within the window that pops up you can see the array depth
and the max children. Setting those values higher will give you more
data back about your variables.
source

Ctrl-Space in Eclipse without Pressing Ctrl-Space

I've just started using Eclipse and I noticed that when I start typing a local variable name it doesn't come up with suggestions like Visual Studio does until I press Ctrl+Space. Is there any way to get it to do this automatically? I find Ctrl+Space an awkward key press.
These bugs (and a solution if you use Eclipse >3.4) may be of interest to you:
A. Allow more character triggers as #Samuel said (fixed in 3.4 onwards):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157
Change the default in Auto activation triggers for Java to ._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
B. Allow content assist everywhere automatically (not fixed):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=101420
What works:
Change the Auto activation triggers to .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_
You're unlikely to type anything else to get assist started.
Window -> Preferences
Java -> Editor -> Content Assist
Change auto-activation to suit your preferences
You will probably want to set the delay to 0.
Also to make Auto Complete work in XML files do the following changes in
Preferences -> XML -> XML Files -> Editor -> Content Assist
Under Auto Activation section, provide the following values
Make Auto activation delay (ms): 0
Prompt when these characters are inserted: <=:._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
Following screenshot explains the same