Eclipse Key Preferences; Debugging; Adding A "Watch Expression" Using The Keyboard [duplicate] - eclipse

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Problem With PHP Eclipse Key Binding
How do I define a custom key binding in eclipse?
I have to admit, for a FREE PRODUCT, Eclipse really delivers. However, sometimes I have to scratch my head about certain missing features...
Eclipse has over ELEVEN HUNDRED different key bindings.
(source: rigel222.com)
I would like to use one of those KeyBindings to add a "Watch" Expression to the expressions window, while debugging.
(source: rigel222.com)
Here is an additional screenshot showing that I already understand the "filter" process. I have set key-bindings for everything I could find pertaining to "Watch", but as you can see it doesn't show up in my right-click menu, and does not function when I use the defined keyboard shortcut.
(source: rigel222.com)
Despite the prevailing opinion that this is "blatant whining", It is also a legitimate problem for me.
Please help.

I just tried it and it works: In the given dialog I entered the word watch as the filter text. The list of key bindings was reduced to three elements. I chose watch and gave a new key binding and it worked.
EDIT:
Please try to unbind the other key bindings that occupy Ctrl+F7 or give Watch another unique key binding.

Related

Zoom in/out with Ctrl+ / Ctrl- not working in Eclipse

In Eclipse, it seems like all the keyboard shortcuts work, except for those that zoom in/out. (I'm on Windows and using Eclipse Version "Kepler Service Release 2") I have already restored the default keys in my preferences as other StackOverflow posts have advised, but it still doesn't work. Does anyone know why? Thanks!
I'll provide an answer, but you haven't really provided enough information for anyone to be confident that they are fully dealing with your problem.
It would still be useful to know what version of Eclipse you're using.
The first thing to do, is determine exactly what the binding is for the "Zoom In" and "Zoom Out" commands, by looking in the "Keys" section in Preferences. It's easiest to type "zoom" in the filter field to limit the table to those functions. I imagine you've already effectively done this, but it is a prerequisite.
The next thing to do is look for conflicts. There are two ways to look for this. First, check the Eclipse log. It will note if there is a keybinding conflict. Second, in that same "Keys" list, remove "zoom" from the filter (if it was there) and click on the "Binding" header to sort by the key sequence. Then page through the list until you find "Ctrl++" and "Ctrl+-" in the list, which I assume are the bindings you have. What you want to check for is if there is another binding in that list where "Ctrl++" BEGINS the key sequence, and is longer than that. Do the same for "Ctrl+-".
If you still don't find any clues from this, I suppose it's possible there's something else you have installed in Windows that is capturing that key sequence. I don't know how you would check for that.

Where are the Eclipse key binding icons documented / defined?

I'm returning to using Eclipse after many years with different IDEs. Moreover, my fingers are most at home with Emacs. While I've set the key binding scheme in Eclipse to Emacs, I'd like to modify a few things further.
While looking at some of the commands and their current key bindings, I see key "icons" that I don't seem to know how to create and I'm wondering if there is a canonical documenation for the iconology used in Eclipse key bindings.
If nobody can point me at such documentation, then perhaps you could tell me what these keys are supposed to be? Specifically the two arrows which point down-and-to-the-right and up-and-to-the-left:
To answer the second part of my own question, the and icons refer to the Home and End keys respectively on most keyboards. Thanks to #greg-449 for the hint.
I'm still on the lookout for a complete list of key <--> icon mappings.

Where can I find possible rules for vscode key bindings?

I've googled for this (perhaps poorly?) and I can only seem to find list of key bindings for vscode. So far I haven't found any list of the rules you can add to key bindings (in the when-part). Right now for example, I want to find out if there's a way to make sure a key binding is only active if I have the version control sidebar up and focused. Kind of like:
filesExplorerFocus, terminalFocus, editorTextFocus and explorerViewletFocus.
Since there is a command for setting the focus to the version control sidebar: workbench.view.scm I've experimentally tried scmFocus but to no luck.
Now this is a specific problem, but I'd really like to save myself some time and just be able to run a few ctrl+f through a document of all possible when-rules.
Vscode when clause commands. I only found it through this issue - so there may be a few other undisclosed when clauses: when clause disclosure issues. I see nothing for when the version control sidebar is active though. Perhaps ask about it at that issues page above.
See also https://stackoverflow.com/a/65584576/836330 and especially https://stackoverflow.com/a/65584576/836330

Eclipse autocomplete parentheses in control structures

I have a quick question that might save me a few seconds of annoyance every day. I know that eclipse can do a lot of autocomplete magic, so this might be possible:
As a programmer who learned with python, I constantly forget to surround contitions in control structures (like if or while) with parentheses. How do I make eclipse autocomplete opening and closing parentheses when I finish typing while or if?
I am aware that I can autocomplete whole structures with ctrl-space, but how can I configure eclipse to do this by itself?
Any help is appreciated.
So in stock Eclipse, the usual way to bring up assisted content is to type Ctrl+Space. The problem with this is that it brings up both Help Proposals and Template Proposals, with the Help Proposals displayed first. You end up wasting time scrolling down to find what you actually want from the Template Proposals. And there's just that much more clutter to choose from.
The solution is this:
Go Window->Preferences->General->Keys. In the type filter text search for "Template". This should bring up a "C++ Content Assist (Template Proposal)" line. Click on it. Now map this to whatever shortcut you'd like (I did Shift+Space because that's an easy one to do while typing). Make sure to click on the "Binding" option to do this. Click "Ok" and you're done!
If you ever want to add or change what is brought up by that shortcut, and for which specific strings it works, just go Window->Preferences->C/C++->Editor->Templates and you can edit those to do exactly what you'd like when using that newly assigned shortcut.
Hope this helps.
EDIT: I am unable verify if this works for PyDev, as I'm running Eclipse Oxygen, which doesn't currently offer PyDev or the Eclipse Marketplace Client plugin. However, my guess is this would still work in PyDev. Best of luck!
Sources:
Setting auto complete shortcuts in Eclipse
How to change the Control+Space autocomplete shortcut keys in Eclipse for Android
Thanks for any help, but the only thing that seems to work are workarounds. My prefered "solution" is to change the Auto activation triggers for Java in Preferences>Java>Editor>Content Assist from . to .iwfs, so that the autocomplete dialog automatically pops up when I start typing if, while, for or switch. Then hitting enter will do exactly what I needed.

Is there a hotkey for searching for references in IntelliJ when using Scala?

Is there a hotkey for searching for references in IntelliJ when using Scala?
In Eclipse, when using the hotkey CTRL+SHIFT+G on a name, a search for references starts. This is very usefull to find where a certain method is used. Is there anything similiar in IntelliJ when using Scala ?
Ctrl+Alt+F7: Show Usages; displays pop-up with usages.
Alt+F7: Find Usages; opens the Find view, displaying usages in various ways (such as by methods and by files).
Found by doing Ctrl+Shift+A, then typing find, and seeing Show Usages and Find Usages listed. I tried search first, but that only showed settings. Now, I knew IDEA called it Usages, not References, but I avoided searching for that because you wouldn't know to search for that.
I think in version 12 in Ubuntu Linux it's Control + Alt + the number key 7 rather than F7.