Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 How to control formating of "Create Declaration"

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
sibratel Posted - May 19 2011 : 12:06:36 PM
I searched the help docs and forum a bit but couldn't find the answer to this question:

When using features such as "Create Declaration", "Change Signature" etc. The formating of the generated code is not what I would like it to be. Is there any way to specify if I want the input arguments to be separated by line breaks and also control their spacing/tabs. An example of how I would like it to look:


float
DoSomething(
	float				argument
) const;


Can this be done? If not can you recomend some other tool that could do it for me?

Thanks a lot
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 19 2011 : 2:53:52 PM
You can control some of the formatting of VA refactoring commands by editing the "Refactor*" VA Snippets, but this is not going to give you this level of control.

Unfortunately VA does not try to do code formatting, instead we simply ask the IDE to do so for us, due to the large number of options required to let people fully configure code formatting.

I am aware of this commercial code formatting plugin:

http://www.profactor.co.uk/stylemanager.php

but personally I have never used it, so I cannot recommend it, and I don't know if it will let you do this, but it might be worth a look.

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