This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge

Applies to: yes Visual Studio no Visual Studio for Mac no Visual Studio Code

Wrap and align call chains

This refactoring applies to:

  • Visual Basic

    What: Lets you wrap and align chains of method calls.

    When: You have a long chain consisting of several method calls in one statement.

    Why: Reading a long list is easier when they're wrapped or indented according to user preference.

    How-to

  • Place your cursor in any of the call chains.

  • Press Ctrl + . to trigger the Quick Actions and Refactorings menu.

  • Select Wrap call chain or Wrap and align call chain to accept the refactoring.

    Wrap, indent, and align parameters or arguments

    This refactoring applies to:

  • Visual Basic

    What: Lets you wrap, indent, and align parameters or arguments.

    When: You have a method declaration or call that has multiple parameters or arguments.

    Why: Reading a long list of parameters or arguments is easier when they're wrapped or indented according to user preference.

    How-to

  • Place your cursor in a parameter list.

  • Press Ctrl + . to trigger the Quick Actions and Refactorings menu.

  • Select Wrap every parameter to accept the refactoring.

    Wrap binary expressions

    This refactoring applies to:

  • Visual Basic

    What: Lets you wrap binary expressions.

    When: You have a binary expression.

    Why: Reading a binary expression is easier when it is wrapped to user preference.

    How-to

  • Place your cursor in the binary expression.

  • Press Ctrl + . to trigger the Quick Actions and Refactorings menu.

  • Select Wrap expression to accept the refactoring.

    See also

  • Refactoring
  •