Create Method returns me to the file I was in, not the file the method is created in

Completed

I've recently setup a new dev machine and installed VS2019.  Previously (VS2017) when I would type the name of a new Property or Method on an instance variable, then use Alt+Enter and "Create Method/Property", Re-Sharper would take me to the class file, add the stub for the method or property and allow me to tweak the parameters by tabbing through them.

Now, it takes me to the class file, creates the stub and immediately returns me to where I was, so I have to manually switch to the class file to tweak the stub its created.  How do I revert to the previous behaviour?

Thanks,

Anthony

 

5 comments
Comment actions Permalink

Hello Burns,

 

Thank you for contacting us.

Could you please specify ReSharper version you are using?

Is the problem reproduced in a newly created solution?

Thank you.

0
Comment actions Permalink

Hi Angelina,

ReSharper Ultimate 2019.2.2 - Visual Studio Professional 2019 (Version 16.3.29326.143)

I've just tried creating a new Console App (.NET Framework) and the issue is still there.

I created an empty class (TestClass).  Added a private instance of it to my Program:

    private TestClass _class;

Then in Main, I added the following:

    _class = new TestClass();
    _class.Open();

ReSharper detects that the Open method doesn't exist and displays it in red with a squiggle.  I place the caret on it, hit Alt+Enter, and choose "Create Method TestClass.Open".  At which point it opens the TestClass file, creates the stub and immediately switches back to the Program.cs file.

HOWEVER!  In the process of testing again while typing this email, I've discovered that if TestClass.cs i already open, then it switches to it and doesn't return me to Program.cs - this is the behaviour I expext.

So if seems the issue only happens when ReSharper has to open the file in question.  Hope this helps.

Thanks,

Anthony

 

 

 

0
Comment actions Permalink

Thank you for the reply, Anthony.

 

Indeed I could reproduce the issue in ReSharper 2019.2.2.

However, the issue seems to be fixed in ReSharper 2019.2.3 that is going to be released in a few days.

Please let me know if you experience the same issue with the new release version.

Thank you.

 

0
Comment actions Permalink

Hello Anthony,

 

Have you tried ReSharper 2019.2.3 - https://www.jetbrains.com/resharper/download/

Thank you.

0
Comment actions Permalink

Yes, that fixes it - thanks!

0

Please sign in to leave a comment.