Create shortcut in Dymola to perform action - keyboard-shortcuts

i would like to create shortcut (keyboard) to perform some action in Dymola.
For example i would like to push a key (or keys combinaison ) to simulate the current model or to simulate a determined open model.
The second possibility would be perfect because when we work on a submodel it is required to open the main model before the simulating.
Moreover, the keybord shorcuts are very poor in Dymola and i would like to improve the user interface
Thanks.

To add a Hotkey, one solution is to use AutoHotKey. That way, you don't need to actually change Dymola in any way.

Related

Intellij - Numbers in `Intention Actions` window

I was wondering. Is it possible to add number shortcut to corresponding actions inside Intention Actions window? Like with String Manipulations plugin:
For example in this case:
I would love to press Alt+Enter and then 3 to Create object buzz - I know for a lot of cases I can use shortcut for example ctrl+alt+v for a variable extraction but not for all.
I was looking for this kind of plugin but without a result

Suppress any write statement from BAPI_XXX

I used BAPI_SHIPMENT_CREATE to create a shipment. After that, I display an ALV. When I press back from ALV, I have a list with a text output from this BAPI.
Does it exist a method to suppress this output? I want to go to selection screen, when I press back from ALV.
Thanks.
It's very unusual that a BAPI uses WRITE. If that's true, then make sure whether the WRITE comes from the standard code or from an enhancement (breakpoint on statement WRITE for instance). If it comes from the standard code, then you may contact the SAP support to make them correct it.
Try running the FM with the “destination none” option to create a new LUW. I think that will suppress the output.

What is the principle by which keyboard shortcuts selected in IntelliJ IDEA?

There are lots of useful functions of Intellij IDEA and for many of them there are keyboard shortcuts.
But remembering shortcuts may be difficult, at least for me.
Are there some consistent guiding principles by which these shortcuts were selected by designers? I believe learning such principles would be helpful to memorize shortcuts itself.
I think that the closest answer you're going to get is "it depends". Some shortcuts are obviously chosen, because the keybinding describes what the shortcut does, for example ⌘+O means open, not only in IntelliJ but in many places throughout OS X.
Some shortcuts probably don't have any kind of such semantic meaning, such as Alt+Enter and are chosen because they are very frequently used and the placement of the keys relative to each other is comfortable.
Other keyboard shortcuts with similar purpose have the same starting sequence of keys. For instance the extract refactoring shortcuts, which are as follows:
⌘+Alt+M - extract method
⌘+Alt+C - extract constant
⌘+Alt+V - extract variable
⌘+Alt+F - extract field
⌘+Alt+P - extract parameter
So in such case you only need to remember that if you want to extract something, you press ⌘+Alt and the first letter of what you want to extract.
That being said, I don't believe that the way to learning the keybindings is memorizing them, but using them. If you use one keybinding multiple times, over the time you will memorize it. You can help this process for instance by locating the action you want to perform in the menu, but instead of clicking it look at the keyboard shortcut next to it and press it. Or find the action using ⌘+Shift+A, look at the shortcut and use it.
There are even plugins, which can help you with this, for instance Key Promoter which you can install via Settings/Plugins/Browse Repositories. This plugin shows you shortcut you can use when you invoke some actions by clicking it in menu, etc. It also shows you how many times you've used this action in such a way instead of using the corresponding shortcut.

IntelliJ Have Safe Delete on by default

In older versions of IntelliJ I remember that Safe Delete was always activated by default, or at least it remembered the last state that I left it in. Now in Intellij 14.0.2, whenever I go to delete, when I'm prompted whether I want to execute Safe Delete, the Safe Delete, Search in comments and strings, and Search for text occurrences check boxes are always unchecked and I have to go check them again ever time that I delete. Is there some way that I can change this?
Sounds like some regression. You should report it as a bug on youtrack.jetbrains.com. In the meanwhile, here is a possible workaround:
There is a Safe delete action in Settings/Keymap which is mapped to ALT+DELETE (⌘ + DELETE on Mac) by default. You can use this shortcut (or remap it to something else) for invoking safe delete directly.
When you invoke the Safe delete dialog using this action there are two checkboxes (Search in comments and strings, Search for text occurences). Those are not checked by default, but when you invoke the Safe delete action again, IntelliJ remembers the previous options (which is another reason to think that the behavior for the normal delete dialog is a bug).
Give it a try

PhpStorm/IntelliJ generate method from usage

I'm looking for a generate method from usage. IntelliJ supports extract, rename etc. But if i write, for instance, $this->new_method($a) i would like to quickly generate this method in the same class. Does this exist or maybe there is a plugin for it?
Thanks for any help
Place cursor on non existing method
Alt + Enter (or wait and click on light bulb)
Choose Add method from submenu.