Rebuilding Code Indentation
Using CodeSMART you can rebuild the code indentation at procedure, component, project or project group levels. The indentation
rebuilder can be customized to meet your coding preferences.
To rebuild the code indentation:
-
In the CodeSMART main menu, select the Code Formatter entry, or click the same button from the Code Edit Tools toolbar to display the Code Formatter dialog-box (quick toolbar and menu references are available).
-
Specify the operation scope. Depending on the current position in code and the active code or designer window, only valid options are listed.
-
Click the Indenting tab.
-
Check the Enable indentation option.
-
Specify the spacer used in indentation. You can choose to use the TAB character or a several SPACE characters.
-
Use the Code appearance check-boxes in order to customize indentation according to your coding behavior. Changes are reflected by the Sample preview.
-
Indent procedure body: check this option if you want to indent the method inner body.
-
Indent comments within procedures: check this option if comments should be indented during indentation. If this
option is off (unchecked) then comments will be placed at column 1.
-
Align comments with code: check this options to have comments indented like the code lines they precede.
-
Indent 'Case' blocks within 'Select Case' structures: if you check
this option 'Case' blocks will have an additional indentation level inside
a 'Select Case' block.
-
Enable indentation exceptions: check this option if you have certain
code lines that should be indented at a specified column, no matter what the
current indentation settings are. Use the corresponding link to display
the Indentation Exceptions dialog where you can manage the exceptions list.
-
In the Code Formatter dialog press Begin to start the indentation.
Depending on the situation, a progress bar may appear to illustrate the operation
progress.
Notes
-
The Code Formatter will first perform indentation then blank lines
management and only at last code wrapping/compacting. If you want the
formatter to only perform certain tasks then click on the corresponding tabs and disable unwanted features.
-
Code formatting settings are saved to the Team.mdb database. You can share
these settings with other users in your development team as described in How
To Share CodeSMART 2007 for VB6 Settings and Data Within a Team.
-
When you share the Code Formatter settings with other users, remember that updates
are global.
-
The Code Formatter can be invoked for the currently open document by using the corresponding
CodeSMART code window context menu.
See also
Back To Top
|