Code Maintenance
Code Maintenance provides many different functions that act at a module or project level.
Code Maintenance
The various functions Code Maintenance provides are explained below: -
- Indent Code - Indents code to a generally accepted style. Uses your current tab width from VB options.
- Comments - Ensure that multi-line comments are in an enclosed comment block.
- Sort Procedures - Sort the Procedures into ascending alphabetical order.
- Invert LineNumbers - Either adds or removes line numbers depending on whether they are already present.
- Report on Variable Prefixes - Displays a report of the invalid prefixes, using the standards in General Options.
Only local variables are considered.
- Report on Unused Variables - Displays a report of the unused variables, only local variables are considered.
- Update 'Called From' Header Field - If the field is present in a procedure header it will be updated with the callers of the procedure.
- Report on Unused Procedures - Displays a report listing all the private scope procedures that are unused.
The initial setup of Code Maintenance is defined in Code Maintenance Options.