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
 Formating
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Gastello
New Member

Germany
2 Posts

Posted - Jul 10 2009 :  08:09:30 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 10 2009 :  1:19:04 PM  Show Profile  Reply with Quote
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

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