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

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
znakeeye Posted - Jan 14 2008 : 06:47:42 AM
Let VAX insert spaces/tabs for the programmer!
An additional setting in VAX, where you specify a certain style for keyword separation. That is, insert spaces where you want them. There are several styles:

if (op + op1 * op3 == (op4 + op5))
   for (int x = 0; x < 10; ++x) Foo(x);
if(op+op1*op3==(op4+op5)) // (Yuck!)
   for(int x=0; x<10; ++x) Foo(x);
if ( op + op1 * op3 == ( op4 + op5 ) ) // (Microsoft?)
   for ( int x = 0; x < 10; ++x ) Foo( x );

Another scenario:

void Foo(int a, int b, int c, int d)
{
}
vs
void Foo(int a,
         int b,
         int c,
         int d
         )
{
}

You get the idea... The question is whether Alt+F8 should do this, or if it should be done while typing. Perhaps an option called "Enable advanced indentation rules"?
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 15 2008 : 3:02:19 PM
Most of our users are working in C++, so unfortunately these options are probably not much use.
sub-star Posted - Jan 15 2008 : 03:00:32 AM
znakeeye:
You can use VS2005's own code formatting when coding in C# to achieve the coding style you want in the first scenario. See Options --> Text Editor --> C# --> Formatting. The second scenario I can't find a setting for. I don't know what language or what IDE you are using, so this may or may not be useful to you.
feline Posted - Jan 14 2008 : 2:15:35 PM
We have discussed the idea of code formatting internally, but we have no current plans to try and offer this.

http://docs.wholetomato.com?W147

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