Code clean-up and initialisation field from constructor.

Just two annoyances in R#4 for your consideration.

After performing a code clean-up ReSharper moves the line on which the cursor is positioned to the top of the screen. I then have to scroll up to see the code I've just been editing. I would prefer it if R# would leave me with the same view of the code as I had before clean-up started.

Given this code:

private IService service;

public Constructor(IService service)

If I use 'Initialise field from constructor parameter' on 'service' R# will generate the following code:

private IService service;

public Constructor(IService service, IService service)
this.service = service;

I would prefer that it simply generated the initialiser and didn't add the extra parameter.



1 comment
Comment actions Permalink


We appreciate your feedback. The corresponding JIRA request has been created,
and you are welcome to monitor its status at

You may want to check our request tracking policy here:

Best regards,
- Development Team.


Please sign in to leave a comment.