Eclipse: How to create two different key bindings for different contexts in plugin.xml? - eclipse-plugin

I am trying to create two key bindings for different dsls with different context but the issue which I am facing is that if the key binding does not belong to first dsl but still it is visible there.
First key binding is
Second key binding is
First key binding belongs to .conv xtext file and Second key binding belongs to .test xtext file.
So, how can I hide the first key binding if the .test xtext editor is opened and vice versa?
I have created two different contexts for both but still both the key bindings appears on any XTEXT editor when I press ctrl+shift+A .

Related

How to change CodeLens key bindings in VS 2019?

I use more than one machine to do programming work in C#/Visual Studio 2019. All is well except the fact that some key bindings are different.
The problem I have is with CodeLens show references popup which by default is activated by Alt + 2 shortcut. However on my other machine the same function is bound to Alt + 3 shortcut, which of course is the source of my frequent mistakes when I need to switch.
Obviously I'd prefer to have the same shortcut on both machines. Therefore my question is about possible ways to change key bindings for Codelens show references popup function.
I have been looking at Options -> Environment -> Keyboard in Visual Studio settings but could not find anything even remotely related to CodeLens show references popup feature.
Any suggestions how to change that binding?

Model Key Path not found in Interface Builder

In a project in XCode V8.2, using objective-c, I have created an object with a couple of properties. When I want to create a binding and start entering the property in "Model Key Path", IB shows me all available properties as expected and I can select the desired one. All is well.
On another Mac however, running XCode V9.2, this process does not work. I can enter a Model Key Path and the app compiles and runs without errors, but IB does not show me the available properties when I start entering the property name. When the name is complete (and correct), IB shows me a grey exclamation mark and a hint that it cannot find the Model Key Path.
Does XCode V9.2 and up require different/additional steps for this?

How to reuse prefix fast when adding new key in IntelliJ Resource Bundle

I have resource bundles with keys grouped by many levels of prefixes. Example:
admin.common.alert.warning.security.passwordInsecure.tooShort
admin.common.alert.warning.security.passwordInsecure.noNumbers
I would like to easily add new keys by reusing certain prefixes, without having to select the prefix, open it in edit mode, copy it, close the dialog, open the add dialog and paste the prefix before adding the suffix.
In eclipse, when viewing the keys hierarchically, I can select a prefix where I want to add a new key, press the add button and the prefix is automatically filled in in the add dialog. Example:
In IDEA this doesn't happen. Is there any setting or plugin may help speed up adding new keys?
Note: I am using IDEA Community 2017
Use Refactor | Copy (F5 default shortcut) action on a certain selected property.

How do I change the default cmd key for keyboard shortcuts in Pharo 3.0?

I'm trying to bind the cmd key in Pharo 3.0 to another key because my system (linux+xmonad) already uses the alt key for other things.
I am trying to bind cmd key, currently mapped to alt, to the win/super/meta key.
I changed method defaultModifier in UnixPlatform class, from:
defaultModifier
^KMModifier control
to:
defaultModifier
^KMModifier meta
But nothing changed. Should I do something else?
There is no easy way to change it in the image short of manually rewriting the shortcuts, because there are many tools that define the shortcut explicitly for each platform by themselves plus there no consensus on what the default shortcut for linux should be (right now it is ctrl and alt).
However this is something that might be tackled in the next version (=5) (4 was released today).
I had to change my dwm (xmonad predecessor) keybinding to the "win" key because of it. (On the plus side it has freed alt, so I can now use alt for example to switch tabs in Chrome and many other.)
There are two places where you might want to make changes:
either at the vm level, where you could change the keyboard event handling (not recommended)
in the keymapping packages you'll find the code to deal with the different key combinations. The different packages then add shortcuts using this mechanism.

Using the same keyboard shortcuts in every IDE/editor

I want to configure each IDEs/editor I use to have exactly the same key shortcuts. By default each IDE/editor has slightly different set of key bindings even for common actions. For example "close current tab" is bound either to CTRL+W or CTRL+F4.
Is there already a set of config files out there (one for each IDE, editor, etc) with the same key binding configured?