How to automatically position the cursor between curly braces in a custom line using Visual Studio 2017

When I place an open figure in Visual Studio 2017 (C #), the cursor automatically moves to the next line to the left of the final curly bracket. Like this (period as cursor):

if() {
.}

I would like the cursor to be automatically included in this line (period as a cursor):

if() {
    .
}

Does anyone know how to make the cursor automatically go where the period is in the second example?

+4
source share
3 answers

When you are in state 1 of your example, use Ctrl+ Enter.

, , . 1 , 2 .

+2

if (.), :

Ctrl + Shift + Enter

Resharper, , , Edit.LineOpenBelow.

.

enter image description here

+1

, VS 2013, , , ,

→ → → # → →

+1

Source: https://habr.com/ru/post/1682581/


All Articles