ShaneKm
ShaneKm

Reputation: 21328

JetBrains Resharper Line break when doing silent code cleanup

Whenever I perform silent cleanup my methods format like this:

public void MyMethod(
     IEnumerable<IPaymentMethod> paymentMethods,
     IPaymentMethod expected,
     bool isDirectBill) {

and I want it to format like so:

public void MyMethod(
     IEnumerable<IPaymentMethod> paymentMethods,
     IPaymentMethod expected,
     bool isDirectBill) 
{

For the life of me i can't find the settings for this

Upvotes: 1

Views: 92

Answers (1)

Ilya Chumakov
Ilya Chumakov

Reputation: 25019

  1. Go to ReSharper Options -> Code Editing -> Code Cleanup. Check the profile used for the silent clean-up (on bottom) and make sure Reformat Code option is checked for this profile.

  2. Then go to Code Editing -> C# -> Formatting Style -> Braces Layout and check preferences for a method declaration.

Upvotes: 2

Related Questions