Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Please Add Reformat of Classes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

cgough
Senior Member

27 Posts

Posted - Apr 09 2014 :  07:58:51 AM  Show Profile  Reply with Quote
It would be great if I could ask Visual Assist to Reformat my C# class file based on a configurable set of rules.

See the following post on stackoverflow http://stackoverflow.com/questions/150479/order-of-items-in-classes-fields-properties-constructors-methods.

Even basic layouts to start would be cool. I'm a messy coder...

I would add the following regions to start and reformat the class into these regions. Perhaps the order could be configurable.
  • Constant Fields

  • Constant Fields

  • Fields

  • Constructors

  • Finalizes (Destructors)

  • Delegates

  • Events

  • Enums

  • Interfaces

  • Properties

  • Indexes

  • Methods

  • Structs

  • Classes


Edited by - cgough on Apr 10 2014 12:25:03 PM

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 10 2014 :  3:09:46 PM  Show Profile  Reply with Quote
Unfortunately we don't have any current plans to do this sort of automatic code grouping.

If you wanted to start a new class with some markers, to help achieve this structure, then VA Snippets are designed to help you achieve this, you can add a snippet for a new class, and trigger this when you want a class:

http://docs.wholetomato.com/default.asp?W171

If you want to quickly and easily re-order an existing file or class, then VA Outline is designed to help you with this:

http://docs.wholetomato.com/default.asp?W187

you can simply drag and drop inside the outline to do the re-ordering you want to achieve, or cut and paste if you prefer.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000