AppCode 2016.3 Help

Convert to Method

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

To convert to a method

  1. In the editor, place the cursor within the name of the method or select a block of code that you want to convert to a method.
  2. On the main menu or on the context menu of the selection, choose Refactor | Convert to Method.
  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: 28 March 2017