Split Lines

Top  Previous  Next

 C#   VB.NET   VB6   VBA 

The Split Lines feature allows you to split lines of code to limit its length. You can customize the maximum length of a line in the Team Options window, Line Splitting section.

MZ-Tools offers the following ways to split lines:

  • The MZ-Tools | Other Utilities | Split Lines... menu.
  • The Split Lines button on the MZ-Tools - Other Utilities toolbar.
  • In Visual Studio 2015 and higher, the keyboard shortcut associated with the MZTools.SplitLines command.
  • In Visual Studio 2013 and lower, the keyboard shortcut associated with the MZTools8.SplitLines command.
  • In VB6 / VBA, the keyboard shortcut associated with the Split Lines feature.
  • In VB6 / VBA, the Split Lines... menu entry on the context menu of a project or file in the Project Explorer.

When you invoke this feature:

  • If the cursor is inside a method, the feature is executed only for that method without further action.
  • Otherwise, a window is shown that allows you to select the scope of the operation (the most suitable is preselected) and to decide whether or not to keep open the modified documents:

SplitLines

See Also:

Lines Splitting Options

Combine Lines

Keyboard Shortcuts Options