R# - formatting code when extracted to a separate file

Hi, I am using VS2019 and R# 2019.1.3. For some time now I am struggling with a formatting issue that drives me nuts. When I extract a class into a separate file, the code gets reformatted with the parenthesis after the namespace put in the same line:

namespace XXX.YYY.SP.Workflows {
    public class TaskAssigneesResolver : ITaskAssigneesResolver
    {
        #region Public Methods
 
        public List<User> GetTaskAssigneesForAction(int projectId, ProjectAction action)
        {
            throw new NotImplementedException();
        }
 
        #endregion
    }
}

 

After code cleanup the parenthesis gets moved into a new line, but doing it every time is frustrating. This does not have to be R#-related, but please, maybe somebody can lead me to the culprit?

Thanks

 

 

0
1 comment

Hello,

 

Thank you for the feedback.

Is the problem reproduced in a newly created solution? Do you use refactoring or context action for moving a class?

Could you please extract dotsettings from all layers (https://www.jetbrains.com/help/resharper/Sharing_Configuration_Options.html#managing) and share it with us via 'Submit a request' form.

Thank you.

0

Please sign in to leave a comment.