Stop inserting a new line after complete current statement (Ctrl + Shift + Enter)

Answered

I am using Rider 2018.1.2. The (Ctrl + Shift + Enter) key combination insert a blank new line after completion. Is there any way to NOT insert that new line? Because I think it is not consistency with IDEA (which does not insert a new line).

2
2 comments

Hello!

Thank you for contacting us.

"Ctrl + Shift + Enter" - is a "Complete current statement" default hotkey. Mainly, a statement ends with ";" and the next statement will start with the new line. So that, inserting a new line is a default behavior and there is no way to disable that at the moment. https://www.jetbrains.com/help/rider/Coding_Assistance__Complete_Statement.html

As a workaround, you can try to use "Complete code" action (Ctrl + Space) and "Smart type completion" action (Ctrl + Shift + Space)

You also can create a feature request in our tracker https://youtrack.jetbrains.com/issues and vote for it.

0

UPDATE: 

Good news :) We decided to support a flag to be possible to switch this setting off.

Here is an issue to track.

 

Kind regards,

Sofya

0

Please sign in to leave a comment.