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
 Auto-line breaks for function definitions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

charleyb
New Member

USA
7 Posts

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

WISH: Auto-line breaks for function definitions.

EXPLANATION: Function definitions that include very long class names, and/or very long function names are more easily understood when "line-breaks" are automatically inserted between the return type, class name, function name, and parameters. This is especially true for "template" classes that can get quite long.

The following is our preferred layout for class-function-definitions, which we arrange "by-hand", but would prefer to be an automatic option through a future version of Visual Assist X)(Visual Assist X 10.6.1856.0 built 2011.08.24):


void
MyVeryLongClassName
::myVeryLongMemberFunctionName(
  int my_very_long_parameter_name,
  const SomeOtherClassWithLongName& another_long_parameter_name) const
{
  // ...
}

template<class DERIVED,class RANGE_TYPE,RANGE_TYPE RANGE_TYPE_MIN,RANGE_TYPE RANGE_TYPE_MAX>
const bool
MyRangeTemplate<DERIVED,RANGE_TYPE,RANGE_TYPE_MIN,RANGE_TYPE_MAX>
::getFlagIsValueInRange(
  const RANGE_TYPE& value_to_test) const
{
  // ...
}

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Sep 19 2011 :  2:42:06 PM  Show Profile  Reply with Quote
If you just want the code to be visually wrapped, without altering the structure of the file, you can turn on the IDE setting:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Word wrap

Unfortunately if you want the file actually reformatted to word wrap the code, 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, but I am not sure if either of them do this:

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