Project
ReSharper
Priority
Major
Type
Feature
Fix versions
5.0
State
Fixed
Assignee
Leonid Shalupov
Subsystem
External Sources
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Ilya Ryzhenkov
    4 years ago (12 Feb 2007 15:19)
  • Updated by   Ilya Ryzhenkov
    2 years ago (31 Oct 2009 02:13)
  • Jira: RSRP-35547
    (history, comments)
 
RSRP-35547 Support navigation to VS [from metadata] pseudo-source, instead of to Object Browser
35
Issue is visible to: All Users
  The issue is visible to the selected user group only
And an option to configure this, of course

Issue was closed
Comments (25)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Christian Crowhurst
  Christian Crowhurst
12 Feb 2007 23:35
4 years ago
See Joe White's blog that discusses this feature request: http://excastle.com/blog/archive/2007/02/11/14543.aspx
Yuri Astrakhan
  Yuri Astrakhan
15 Aug 2007 21:48
4 years ago
This is a very important issue for me – I am forced to reset all Resharper shortcuts just because F12 is defined differently and Ctrl+B brings up the object browser. If ctrl+B would bring up the METADATA generated text from code, it would greatly improve usability. Thanks for the great product!!!
Yuri Astrakhan
  Yuri Astrakhan
27 Nov 2007 03:41
4 years ago
This issue got even worse with R# 3.0: simply enabling Resharper forces F12/Ctrl+B to navigate to object browser. Apparently there is no longer a way to get the source from meta data (verified in both VS2005 & VS2008 RTM, build 565)
Alex Martsynkevich
  Alex Martsynkevich
09 Dec 2007 20:22
4 years ago
Apparently R# under VS2008 RTM doesn't even jump to the right location in Object Browser. I reported that in new issue: RSRP-54012
Michael Schierl
  Michael Schierl
19 May 2008 16:57
3 years ago
This drives me mad :(
Where can I find class attributes (like [Serializable] or [Designer]) in the Object Browser? Or how can I disable R# temporarily without uninstalling it?
R# does not really make me more productive when I have to spend hours on things like that :(
Ilya Ryzhenkov
  Ilya Ryzhenkov
19 May 2008 17:13
3 years ago
Michael, all that info you can find in our Quick Doc feature.

2all: I've spent some time and now can confirm that this feature of VS is not available via any extensibility mechanism available. It is purely feature of C# language service, implemented in C++ without any COM interfaces available. The only thing we can do with it - do not intercept VS "Go to declaration" command when navigating to compiled symbols (libraries). This means that users will have navigation working differently depending on the source of navigation. For example, double-clicking in any ReSharper tool window will still open Object Browser. I'm not sure if this is what everybody need, but let's discuss this.

So, why do you want [metadata] view? What information do you see there which is not available otherwise? Like I said, most information is available via Quick Doc feature of ReSharper without any navigation at all. Since ReSharper 4 you can even pin it.
Yuri Astrakhan
  Yuri Astrakhan
19 May 2008 19:07
3 years ago
Ilya, yes, different behavior is acceptable. Should be configurable.

I, personally, need meta data source because object browser...

  • Does not contain method and parameter attributes
  • Declarations cannot be copied as ready to use member declarations (can only copy either one full name, or the text from description)
  • Very poor search - cannot search member names / parameters / docs inside one class using regular text search tools (plain or regex) - very useful for large classes.
Yuri Astrakhan
  Yuri Astrakhan
19 May 2008 19:20
3 years ago
Just looked at the attributes in more details: In VS2008, object browser shows a section called "Attributes" at the bottom, but when I looked at the type "System.Int32", it showed
public struct Int32
Member of System
Attributes:
[System.Runtime.InteropServices.ComVisibleAttribute(true)]


whereas reflector, which I trust much more, shows this:

[Serializable, StructLayout(LayoutKind.Sequential), ComVisible(true)]
public struct Int32 : IComparable, IFormattable, IConvertible, IComparable<int>, IEquatable<int>


As you can see, information is 1) more complete, 2) easier to read (i have to open the type and then open the Base Types branches in the tree just to see parent class/interfaces.
Serge Baltic
  Serge Baltic
26 May 2008 20:20
3 years ago
Open the VS built-in Code Definition Window while in the Object Browser.
Peter Ritchie
  Peter Ritchie
07 Jun 2008 19:59
3 years ago
Yes, please offer an ability to not intercept the "Go to declaration".

Metadata view is nice because you can use text search as well as shows the declaration in a format that I use more often (i.e. I'm always editing C# code, using the object browser is a much different way of viewing the same information and requires a completely different set of keystrokes.)

Object Browser is something that VB users are more used to. If you're editing C# code and you don't come from a VB background Object Browser is completely foreign (and annoying).
Serge Baltic
  Serge Baltic
07 Jun 2008 21:57
3 years ago
The VBNET/C# differentiation seems to be not true.

However, the Object Browser presentation language is pretty much random (C#/VBNET), which makes it a problem.
Peter Ritchie
  Peter Ritchie
07 Jun 2008 23:53
3 years ago
Sorry, I'm old. Pre-VBNET the object browser was primarily a VB thing. You could only use it in other languages if the components were COM.
Serge Baltic
  Serge Baltic
08 Jun 2008 05:11
3 years ago
C++ers would use oleview32.exe instead of the Object Browser, which is no much difference.

Alas, Object Browser is all we've gotten right now.
Fabrice
  Fabrice
12 Jun 2008 19:28
3 years ago
Please don't remove Visual Studio features. This one is an example. I hate it when something I was using before is removed because Resharper decides it should be so.
What I want to see when I use F12 or Go to Declaration is the pseudo source code based on metadata. If Resharper wants to offer something else, such as quick access to the object browser, then it should use another keyboard shortcut, and at any rate it should not remove the Visual Studio feature, as is the case now.
Please provide a quick-fix for this for Resharper 3.1.
Yuri Astrakhan
  Yuri Astrakhan
27 Jun 2008 21:29
3 years ago
Code Definition window (Ctrl+\,Ctrl+D) still shows code from the metadata, and can be viewed and copied. I propose making F12 the default shortcut for that window, and bring it up as a tabbed document window instead. Works for me.
Derek Greer
  Derek Greer
06 Jul 2008 07:43
3 years ago
This request has my vote. It's one thing to change the key mappings (Go to Definition is Ctrl+B instead of F12), but its quite another to disable a feature altogether. I use "Go to Definition" quite a bit and really dislike not being able to easily navigate to the metadata now. Please add an option to toggle the interception of the "Go to Definition" command.
Avner Zangvil
  Avner Zangvil
27 Jul 2008 16:03
3 years ago
The Object Browser does not display Extension Methods while the [from metadata] feature does and that renders the OB almost useless for those of us who are using C# 3.5 features extensively. For example, hit F12 on an IEnumerable<> variable and compare results with OB and with From Metadata. The OB gives very little useful info while From Metadata displays virtually everything that the compiler would recognize in a clear, complete, searchable and easy to view format. I realize that some people like GUI displays more than source code, but developers need completeness first for a feature to be useful. As people start using extension methods, enumerables and other C# 3.5 stuff more and more, the shortcomings of the OB will become more painful for them.
dorumn
  dorumn
05 Sep 2008 02:22
3 years ago
i dont like object browser too =( shortcut "ctrl+f" not work, cant search in current class members or return types, also "Alt+\ Go to file member " not work in object browser
John Twigg
  John Twigg
13 Oct 2008 17:55
3 years ago
I don't think Object browser is a comparible alternative to MetaData view.

In addition to all the reasons above (most notablely that MetaData view is a Code view and therefore homogeneous within the IDE).

Another reason is that Navigate Forward and Backwards do not work with Object Browser. This is HUGE for me.

Is there a way to even disable this feature?
John Twigg
  John Twigg
28 Nov 2008 20:15
3 years ago
Yuri Astrakhan said that he could see the Attributes section in the object browser in vs2008. I however cannot and I see no options to enable this feature.

I really do hate this forced feature of Resharper.

Is there any intention to alter this or at least give the option to disable it?
Derek Greer
  Derek Greer
18 Feb 2009 19:30
2 years ago
One interesting thing I just discovered is that from the Code Definition window (Ctrl+\,Ctrl+D), F12 appears to bring up the metadata view on any types you open from there and likewise on any type contained within the resulting metadata views.
Adam Farley
  Adam Farley
25 Feb 2009 20:14
2 years ago
This is so far the number one irritant upon using resharper - I'm not sure why go to definition even gets overridden in the first place. This seems like a feature no one asked for (I can say for certain it's not something I was looking for when reading the features). Best case to me would be to leave the source view to act the way it used to. I don't find myself using F12 anywhere else.

(Thanks Derek for the workaround)
Leonid Shalupov
  Leonid Shalupov
05 Oct 2009 17:10
2 years ago
Fixed in upcoming 5.0. Look at "Navigate from here -> Object Browser", "Navigate from here -> Metadata View" in 5.0 too.
Fabrice
  Fabrice
05 Oct 2009 17:29
2 years ago
Thanks for finally having fixed this!
Yuri Astrakhan
  Yuri Astrakhan
30 Oct 2009 21:58
2 years ago
Wonderful fix! Much better than the built-in :)

Time to close the issue?

Thanks!!!