I'm doing some class clean to organize the functions in cs file in alphabetical order. I'm using Visual Studio 2008.
When writing them, I just put them arbitrarily, but it now looks quite messy.
Is there some easy way to organize them automatically?
Better to have a tool because there're quite a lot files to clean up.
Writing to a file (fprintf or fputs)
Stack them up in Source and module folder like default it does. Make Public and Private folder inside it, Public should have header files that will be exposed outside of module, private should have all cpp files and header files to classes not exposed to outside of the module.
Why bother organizing in alpha order? The IDE provides a drop down list in order for you to use if you wish to access them in that manner.
Instead the source file should contain them in a meaningful order (what is meaningful is rather subjective) either by the specifics of their tasks or by some sensible convention if nothing else exists (such as by visibility, or placing properties together).
Auto layout rules are a nightmare for source repositories since they put in needless mass movements that frustrate your ability to identify real change, as such they should be avoided unless the rules comply with one of the following:
If the answer is at all beyond 'rarely' you don't want to use it full stop, efficient browsing of historical changes is more useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With