Nikita Papkov
Nikita Papkov

Reputation: 3

IDE Rider. How to disable moving the carriage on new line when I press Shift + Enter?

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

Upvotes: 0

Views: 2310

Answers (1)

LazyOne
LazyOne

Reputation: 165423

  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

Upvotes: 1

Related Questions