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
 Function Definition Params Indented Exactly Once
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

charleyb
New Member

USA
7 Posts

Posted - Sep 18 2011 :  09:53:03 AM  Show Profile  Reply with Quote
I *love* Visual Assist X, and recognize what it's doing (parsing and formatting) is incredibly difficult.

WISH: Function definition parameters indented exactly once.

The current "indenting" algorithm seems to indent function definition parameters in the *header* exactly once (we like this):

class MyClass
{
  public:
    void foo(
      int a,     //...indented exactly once (good)
      int b);    //...indented exactly once (good)
};


However, in the *implementation*, the parameters are at the "end" of the function name, unless the function name is too "big", at which point they are indented exactly once.

(Can we have an option to *always* indent parameters exactly once, currently "short" function definitions do not indent exactly once?)(Visual Assist X 10.6.1856.0 built 2011.08.24):

void
MyClass::foo(
             int a,   // indented more than once,
             int b)   // can we turn this off? 
{
  // ...
}

void
MyClass2::someVeryLongFunctionNameThatIndentsParamsExactlyOnce(
  int a,   // indented exactly once, we like this,
  int b)   // but want it for short function names too
{
  // ...
}

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Sep 19 2011 :  2:38:56 PM  Show Profile  Reply with Quote
Unfortunately VA does not do code formatting its self, we simply ask the IDE to do the code formatting, and rely on your IDE settings for this. This FAQ entry links to a couple of different code formatting tools that you might want to look into:

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