SemanticDiff icon indicating copy to clipboard operation
SemanticDiff copied to clipboard

support multiple files move for extract method to class refactor / move features between object/classes

Open jkone27 opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. When refactoring code, a common operation is extract to class

class A
{ 

  method One
  method Two { 
  
  // SOME CODE
  // SOME CODE TO REFACTOR INTO NEW CLASS B
  //SOME OTHER CODE
  }
     
  
 }

--->

class B {
method Three {   // SOME CODE OF CLASS B }
}

class A { 
(B)
method One 
method Two  { 
 // SOME CODE
 B.Three(...)
 //SOME OTHER CODE

}
}

Describe the solution you'd like would be nice if extract interface and class, through added reference in the constructor, could show and navigate/compare to the same extracted methods among different classes

Describe alternatives you've considered tried to compare different files manually now but is not easy to do...

Additional context This would be super useful in the context of refactoring: https://refactoring.guru/refactoring/techniques/moving-features-between-objects

jkone27 avatar Aug 22 '23 11:08 jkone27