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:
-
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 Line Wrapping tab.
-
Check the Enable code lines wrapping/compacting option.
-
Select the Compact wrapped lines radio button if you want to combine code lines that span over multiple physical lines into a single line.
-
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.
-
Specify if code lines should be wrapped when a line separator (" : ") is met by checking the corresponding option.
-
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
Back to top
|