AppCode 2016.2 Help

Convert to Block

The Convert to Block refactoring lets you convert a function or a method to a block of code.

To convert to a block

  1. In the editor, place the cursor within the name of the method/function that you want to convert to a block.
  2. On the main menu or on the context menu of the selection, choose Refactor | Convert to Block.
  3. In the Change Signature dialog that opens, make changes if necessary.
  4. To perform the refactoring right away, click Refactor.

    To see the expected changes and make the necessary adjustments prior to actually performing the refactoring, click Preview.

Last modified: 20 July 2016