Spacing in C# code formatting

I have this hand formatted code:

 
public GlobalStatisticsQueryHandler
(
     [NotNull] IQueryHandler<CountRegisteredForPeriodQuery, int> usersCountRegisteredForPeriodQueryHandler,
     [NotNull] IQueryHandler<CountRegisteredActiveForPeriodQuery, int> usersCountRegisteredActiveForPeriodQueryHandler,
     [NotNull] IQueryHandler<OffersCountQuery, int> countQueryHandler
)
{
     if (usersCountRegisteredForPeriodQueryHandler == null) throw new ArgumentNullException ("usersCountRegisteredForPeriodQueryHandler");
     if (usersCountRegisteredActiveForPeriodQueryHandler == null) throw new ArgumentNullException ("usersCountRegisteredActiveForPeriodQueryHandler");
     if (countQueryHandler == null) throw new ArgumentNullException ("countQueryHandler");
 
     this.usersCountRegisteredForPeriodQueryHandler = usersCountRegisteredForPeriodQueryHandler;
     this.usersCountRegisteredActiveForPeriodQueryHandler = usersCountRegisteredActiveForPeriodQueryHandler;
     this.offersCountQueryHandler = countQueryHandler;
}



VS format does not mess with it. But R# does and make it like this:

 
public GlobalStatisticsQueryHandler
     (
     [NotNull] IQueryHandler<CountRegisteredForPeriodQuery, int> usersCountRegisteredForPeriodQueryHandler,
     [NotNull] IQueryHandler<CountRegisteredActiveForPeriodQuery, int> usersCountRegisteredActiveForPeriodQueryHandler,
     [NotNull] IQueryHandler<OffersCountQuery, int> countQueryHandler
     )
{
     if (usersCountRegisteredForPeriodQueryHandler == null) throw new ArgumentNullException ("usersCountRegisteredForPeriodQueryHandler");
     if (usersCountRegisteredActiveForPeriodQueryHandler == null) throw new ArgumentNullException ("usersCountRegisteredActiveForPeriodQueryHandler");
     if (countQueryHandler == null) throw new ArgumentNullException ("countQueryHandler");
 
     this.usersCountRegisteredForPeriodQueryHandler = usersCountRegisteredForPeriodQueryHandler;
     this.usersCountRegisteredActiveForPeriodQueryHandler = usersCountRegisteredActiveForPeriodQueryHandler;
     this.offersCountQueryHandler = countQueryHandler;
}


Is there a way to tune R# formatting the way it will retain parenthesis on the begining of the new line and will not move it under the name?

0

Please sign in to leave a comment.