Sysmagine / SemanticDiff

Community support for SemanticDiff, the programming language aware diff for Visual Studio Code and GitHub.
https://semanticdiff.com
40 stars 0 forks source link

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

Open jkone27 opened 11 months ago

jkone27 commented 11 months ago

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