Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Please Add Reformat of Classes

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
cgough Posted - Apr 09 2014 : 07:58:51 AM
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

1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 10 2014 : 3:09:46 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000