Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Formating

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
Gastello Posted - Jul 10 2009 : 08:09:30 AM
I am using the folowing formating of functions, conditions, circle etc in Visual C++ when it is not enough symbols in line:


int SomeFunc( long paramLong,
              CString paramString,
              CTime paramTime,
              CMyClass* pMyClass )
{
    //some code here
    return 0;
}


And corresponding calling of the function


int ret = SomeFunc( paramLong,
                    paramString,
                    paramTime,
                    pMyClass );


The same formating I use in circles, conditions, and other operations. For example:


if ( someVar1 == SOME_VALUE1 &
     someVar2 == SOVE_VALUE2 &
     someVar3 == SOME_VALUE3 )
{
     //some code here
}

for  ( ULONG iEl = 0;
       iEl < numEl;
       ++iEl )
{
    //some code here
}


If I will select the function pres Alt + F8 to organize code ( formating by structure and "{" "}" symbols ) Visual Studio will change my formating to standrat microsoft formating;

int ret = SomeFunc( paramLong,
   paramString,
   paramTime,
   pMyClass );


wich format is bad for reading by me and other users. The Studio is also making this way formating when I trying to make copy paste of the function.

Is it possible to implement in Visual Assist option to switch new way formating like I making? Means when user press Alt + F8 or uses Copy + Paste then formating of functions, circles definitions, conditions and other in a way I shown?

I bealive this formating of a code would be useful also for other developers of different develoment languages.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jul 10 2009 : 1:19:04 PM
Currently we do not have any plans to try and to code formatting. This FAQ entry links to a couple of code formatting tools that you might find useful:

http://docs.wholetomato.com?W147

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