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

znakeeye
Tomato Guru

379 Posts

Posted - Jan 14 2008 :  06:47:42 AM  Show Profile  Reply with Quote
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"?

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jan 14 2008 :  2:15:35 PM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page

sub-star
New Member

Norway
8 Posts

Posted - Jan 15 2008 :  03:00:32 AM  Show Profile  Reply with Quote
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.

The simplest solution is often the most difficult one to reach.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jan 15 2008 :  3:02:19 PM  Show Profile  Reply with Quote
Most of our users are working in C++, so unfortunately these options are probably not much use.

zen is the art of being at one with the two'ness

Edited by - feline on Jan 15 2008 3:03:21 PM
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