Project
ReSharper
Priority
Normal
Type
Feature
Fix versions
No Fix versions
State
Submitted
Assignee
Ilya Ryzhenkov
Subsystem
File structure
Affected versions
5.1.1
Fixed in build
No Fixed in build
  • Created by   Stefan
    18 months ago (25 Nov 2010 17:34)
  • Updated by   Matthew Adams
    15 months ago (23 Feb 2011 18:48)
 
RSRP-198710 Dynamic file structure window according to rules defined in Type Members Layout
3
Issue is visible to: All Users
  The issue is visible to the selected user group only
[5.1]
I would like an option for the file structure window (or an extra window) to be dynamically ordered/regioned according to rules set in the Type Members Layout.

This would be a great feature for multi-user use since merging a file that has been re-sorted according to type members layout is really a pain and often prevents source control system's "Annotate" feature to work properly.
Comments (5)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Jura Gorohovsky
  Jura Gorohovsky
25 Nov 2010 22:06
18 months ago
@Stefan,
I'm having a hard time understanding the usage scenario for this feature.
Do you want it to be implemented because you don't like the type members layout scheme used in your team and consequently you'd like to use your preferred scheme when reviewing File Structure?
Alternatively, is it a common scenario that you and another team member are working on the same code file concurrently, and one of you applies Code Cleanup before committing?
Stefan
  Stefan
25 Nov 2010 22:31
18 months ago
Problem: We have a type members layout scheme which e.g. sort members alphabetically. User 1-3 add new methods in Foo.cs, commits without applying the Code Cleanup with the shared type members layout (very common).
Then user4 wants to add a new method, and actually "remembers" to apply the Code Cleanup before committing. If user1-3 continues to edit "their" methods, they will get in trouble when updating user4's changes since now these methods are located at different locations in file. Then the user must re-align his current work with version from user4 to see if user4 also updated something in the method he "moved" to another location in the file.

Another issue with reordering a file, which e.g. hasn't been reordered for quite a while, makes the SCC providers "Annotate" function (e.g. in Subversion and TFS) useless (Annotate indicates which user last modified the current code line).

Since our reordering/regioning of members only is used to get a better overview of the file (especially when using RS's file hierarchy), it would be better if we had a window that dynamically updates, so it doesn't matter if a user places a method inside wrong region, or sort method names incorrect etc.

(VA has something similar they call "Hovering Class Browser", which dynamically changes when one hovers with the mouse over a type/variable which is very helpfu back in the C++ days to get an overview of the class without even have to go to the class definition).

See also the forum thread at http://devnet.jetbrains.net/thread/286640
Jura Gorohovsky
  Jura Gorohovsky
25 Nov 2010 22:47
18 months ago
@Stefan Thanks for providing the details.
There's almost no chance we can get this done for ReSharper 6 but we'll consider it during feature planning for a future version.
Hans Christian Falkenberg
  Hans Christian Falkenberg
26 Nov 2010 13:24
17 months ago
+1 on this, the scenario Stefan details here is the one I had in mind when creating RSRP-7846.
This was one of the regressions I experienced when moving from Eclipse/Java, which has a "Java outline" window instead of a "File structure" window, so it would be nice to see it rectified.
(ref http://help.eclipse.org/helios/topic/org.eclipse.jdt.doc.user/reference/views/ref-view-outline.htm )
Matthew Adams
  Matthew Adams
23 Feb 2011 18:48
15 months ago
+1. Agree with Hans Christian Falkenberg wholeheartedly.