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.