Author |
Topic  |
|
jakeslade
Junior Member
 
United Kingdom
20 Posts |
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! |
|
jakeslade
Junior Member
 
United Kingdom
20 Posts |
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. |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19200 Posts |
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. |
zen is the art of being at one with the two'ness |
 |
|
jakeslade
Junior Member
 
United Kingdom
20 Posts |
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
Whole Tomato Software
    
United Kingdom
19200 Posts |
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  |
zen is the art of being at one with the two'ness |
 |
|
|
Topic  |
|