New Procedure Assistant

Top  Previous  Next

The New Procedure Assistant feature allows you to add procedures (functions, properties or subroutines) to the source code easily through a dialog window.

MZ-Tools offers the following ways to show the New Procedure Assistant window:

  • The MZ-Tools | New Procedure Assistant menu.
  • The MZ-Tools | New Procedure Assistant context menu of a code window.
  • The New Procedure Assistant button on the MZ-Tools toolbar.
  • The keyboard shortcut associated with the MZTools6_VSXXXX.NewProcedureAssistant command.

The New Procedure Assistant window is the following:

NewProcedureAssistant

In this window, you can enter the following:

  • Name: the name of the procedure.
  • Scope: the scope of the procedure.
  • Procedure Kind: property (Get and/or Set), function or subroutine. In the case of properties, MZ-Tools suggests a name for the member variable, although you can change it.
  • Arguments: the list of parameters of a function or subroutine.
  • Modifiers: for example static, sealed, etc. for C# procedures or Shared, NotOverridable, etc. for VB.NET procedures.
  • Data Type: the return data type of a property or function. It can be a simple .NET type (String, Boolean, etc.), a class, an enum, a collection or a control. You can enter the type directly in the editable combobox or you can fill the list with available types clicking the Fill button.
  • Add Header: select it if you want to add a header to the procedure (see the Add Procedure Header feature).

When you click the Add button (or press the Enter key), the needed code is added to the current code window. You can repeat the operation several times with different values before closing the window.

Remarks:

  • If the current line is a blank line between two procedures, then the procedure is inserted at that line. Otherwise, it is appended to the end of the class.
  • You can customize the nomenclature preferences for member variables in the Corporate Options window, Nomenclature section.
  • This feature is not available for the C++ language.

See Also:

New Procedure Assistant Options

Add Procedure Header

Add Procedure Header Options

Nomenclature Options

Keyboard Shortcuts Options