Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Any extension that can move/reorder class fields?

$
0
0

Suppose I have a DummyClass which is 3000 lines long. At about 2000th line, I am adding a DummyMethod(). I find that I need a DummyField, but I do not want to scroll all the way up to the beginning of the class to put it there. It will be annoying. So I usually put DummyField at the top of DummyMethod(). The code works fine, but later it looks ugly. I manually cut and paste the field to beginning of the class. But this is taedious. Is there any extension that can help me?

class DummyClass()

{

   int Field1;

   int Field2;

... 2000 lines below

  int DummyField

  void DummyMethod()

  {

     DummyField ++;

  }



Viewing all articles
Browse latest Browse all 31927

Trending Articles



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