View.NavigateBackward vs Resharper.NavigateBackward

Hi,

I have the following problem. I have assigned Ctrl+- as "View.NavigateBackward".
If I create a default class in vstudio, I notice following 3 different behaviors:

1) I navigate to a method body, press Ctrl+<Home>, type something (but do NOT accept any intellisense), press Ctrl+-. Now cursor is back at method body
2) I change shortcut to use "Resharper.NavigateBackward" and redo steps at 1) Now cursor is placed in some random file (it seems)
3) I change back to use "View.NavigateBAckward" and do the following:
Navigate to method body, press Ctrl+<Home>, start typing "usi" and accept the "using" intellisense, press Ctrl+-. Now cursor is placed in some random file (it seems), i.e. same behavior as 2.


This is biting me often when I want to add new namespaces at top for a method I'm currently working in (i.e. I simply want to add using statment and navigate backwards to the method I was working in).

Is this a Resharper bug or a vstudio bug?

Thanks,

2 comments
Comment actions Permalink

Case 3 is now working as expected with RS 5.1 (verified with 5.1.1723).

Case 2: "Resharper.NavigateBackward" doesn't seem to do anything but "Resharper.Resharper_NavigateBackward" behaves the same as before.

0
Comment actions Permalink

Hello,

Case 2: "Resharper.NavigateBackward" doesn't seem to do anything but


This action does not belong to R#5. It's a leftover from some older versions
using legacy Visual Studio integration techniques.

"Resharper.Resharper_NavigateBackward" behaves the same as before.


Up-to-date ReSharper actions all have the "Resharper_" prefix in them. The
"Resharper." prefix is sometimes added by Visual Studio in a random fashion
(actually, based on the name of the menu the command was first seen in, which
isn't a good rule in our case).


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.