Question

When I open a Groovy Console in Intellij, the execute current statement key is set as Enter.

enter image description here

Obviously this is very annoying as when I'm trying to write the script and trying to go to a new line it runs the script.

I've looked at the keymap in Settings->Keymap and it appears to be set as Ctrl+Enter

enter image description here

Any Ideas how I can change this to actually be Ctrl+Enter?

Was it helpful?

Solution

So I found what the solution was. Turns out that the key mapping for the action that I have posted in my question was not correct action for the console I had open. Found this by actually searching for 'Execute' in the search bar of the key map dialog.

The correct mapping that I had to change was under Settings -> Keymap -> Other -> Execute Current Statement (picture shows changed key)

enter image description here

Which now is working correctly

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top