Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Auto sort methods on header file?

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
jakeslade Posted - Aug 13 2025 : 06:02:27 AM
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!
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 14 2025 : 06:15:09 AM
If you are not familiar with that option, did you know that you can use VA Outline to manually re-order files? If you select one, or several, items in VA Outline you can drag and drop them to re-order them, or cut and paste them, depending on what works better.

If you turn off displaying comments in VA Outline, VA will take the function comment blocks with their matching functions when moving them. Not as quick or simple as VA ordering the cpp file to match the header file, but helpful when you are just doing a bit of re-ordering of a file
jakeslade Posted - Aug 13 2025 : 11:07:06 AM
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.
feline Posted - Aug 13 2025 : 07:42:55 AM
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.
jakeslade Posted - Aug 13 2025 : 06:10:09 AM
Nevermind, I found it.

Just hover over a function name in your .cpp file and the option appears.

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