Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-286613: Outcome of the Move Refactoring depends on checkbox "Preserve hierarchy of folders and file names"

$
0
0
Reporter Alexander Groß (alexandergross) Alexander Groß (alexandergross)
Created Dec 13, 2011 3:49:04 AM
Updated Dec 14, 2011 9:54:55 PM
Priority Major
Type Usability Problem
Fix versions Mirabile Futurum
State Open
Assignee Sergey Shkredov (serjic.shkredov)
Subsystem Refactoring
Affected versions 6.1
Fixed in build No Fixed in build
Consider the following VS solution:
  • project-a\folder\file.cs
  • project-b which is empty

Scenario A


  1. Right-click the "folder" folder and select Refactor | Move...
  2. In the dialog, choose "project-b" as the target
  3. Select "Preserve hierarchy of folders and file names"
  4. Complete the refactoring

The end result is this:
  • project-a which is empty
  • project-b\folder\file.cs

Scenario B


  1. Right-click the "folder" folder and select Refactor | Move...
  2. In the dialog, choose "project-b" as the target
  3. Select "Put classes into separate files"
  4. Complete the refactoring

The end result is this:
  • project-a which is empty
  • project-b\file.cs

In Scenario B the folder disappears and I don't see why that is useful. With files in subfolders of the "folder" the whole structure is actually flattened. I was under the impression "Put classes into separate files" can be subsumed as "Refactor | Move types into matching files".

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>