简体   繁体   中英

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
  1. Settings/Preferences | Keymap
  2. Use Find Actions by Shortcut button 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 Editor Actions | Start New Line action in Default keymap that behaves as per your description. Just remove that shortcut from that action.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM