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
 Technical Support
 Auto sort methods on header file?
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

jakeslade
Junior Member

United Kingdom
20 Posts

Posted - Aug 13 2025 :  06:02:27 AM  Show Profile  Reply with Quote
Hi,
I remember VAX having a feature that would automatically sort method implementations in .cpp files to match the declaration order in the corresponding header file.
I've been searching for this functionality but haven't been able to find any documentation or figure out how to access it. Is this feature something that exists (or existed), or am I misremembering? If it does exist, could you point me to how to use it?
Thanks!

jakeslade
Junior Member

United Kingdom
20 Posts

Posted - Aug 13 2025 :  06:10:09 AM  Show Profile  Reply with Quote
Nevermind, I found it.

Just hover over a function name in your .cpp file and the option appears.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19199 Posts

Posted - Aug 13 2025 :  07:42:55 AM  Show Profile  Reply with Quote
You can also trigger it on the class name.

You might also want to make sure you have the setting:

VA Options -> Code Generation -> Maintain order in header and source files for generated C/C++ implementations

turned On to help maintain the correct ordering.

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

jakeslade
Junior Member

United Kingdom
20 Posts

Posted - Aug 13 2025 :  11:07:06 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

You can also trigger it on the class name.

You might also want to make sure you have the setting:

VA Options -> Code Generation -> Maintain order in header and source files for generated C/C++ implementations

turned On to help maintain the correct ordering.



TIL! Thanks, that's awesome.
Go to Top of Page
   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