0

May be someone know how I can disable the following behaviour: when I press Shift+Enter - Rider moves the carriage on new line.

For example I write:

if (someCondition){[Here I press Shift+ENTER]}

I want:

if (someCondition)
{
| <- carriage
}

But Rider makes:

if (someCondition){}
| <- carriage is here
  • Why not just press `Enter` -- it should do just that. Other than that -- `Settings /Preferences | Keymap` and check what actions have `Ctrl + Enter` as shortcut (there is a button next to search field that allows such lookup) – LazyOne Mar 13 '18 at 19:36
  • Sorry, I mean Shift + Enter. Shift I must hold when I want to type "{" and sometime when I type fast I take holded Shift and press Enter. I checked KeyMap and didn't find something about Shift+Enter. – Nikita Papkov Mar 14 '18 at 08:56

1 Answers1

1
  1. Settings/Preferences | Keymap
  2. Use Find Actions by Shortcutbutton to find what actions have Shift + Enter assigned to them.
  3. Remove that shortcut from appropriate action(s)

Here in PhpStorm (it would be similar in Rider as they both IDEA-based IDEs) Shift + Enter is assigned to Editor Actions | Start New Line action in Default keymap that behaves as per your description. Just remove that shortcut from that action.

enter image description here

LazyOne
  • 158,824
  • 45
  • 388
  • 391