yalgp
yalgp

Reputation: 13

Place get, set for property on one line in Rider

When I declare a property Rider automatically wraps get and set like this(after typing ';'):

private ProductUnit Unit
    {
        get;
        set;
    }

So how do I configure settings to avoid this wrapping?

Upvotes: 1

Views: 955

Answers (1)

Dor Lugasi-Gal
Dor Lugasi-Gal

Reputation: 1572

quick tip for Rider users

for modifying specific code you can select your code

and enter the configure window

enter image description here

this window will show you, the settings that affect this selected code block

the specific line that you are looking for is the one marked with red:

Place auto property declaration on single line

enter image description here

Upvotes: 4

Related Questions