You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Code Formatter > Line Wrapping
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

Wrapping/Compacting Code Lines

There are times when you may find useful to wrap a code line across multiple lines in benefit of code readability. CodeSMART can help you split code lines which exceed a certain length and also perform the reverse operation (code line compacting).

To Wrapping/Compacting Code Lines:

  1. 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).
  2. Specify the operation scope. Depending on the current position in code and the active code or designer window, only valid options are listed.
  3. Click the Line Wrapping tab.
    Code Formatter - Line Wrapping
  4. Check the Enable code lines wrapping/compacting option.
  5. Select the Compact wrapped lines radio button if you want to combine code lines that span over multiple physical lines into a single line.
  6. Check the Wrap code lines option to split code lines that exceed a certain maximum line length and the number of additional tabs used to indent subsequent (child) wrapped code lines.
  7. Specify if code lines should be wrapped when a line separator (" : ") is met by checking the corresponding option.
  8. Press Begin in order to start formatting. 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.
  • The Code Formatter can be invoked for the currently open document by using the corresponding CodeSMART code window context menu.
See Also
Code Formatter Overview
Rebuilding Code Indentation
Managing Blank Lines
Formatting Definition Lines

Back to top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Code Formatter