AppCode 2016.2 Help


AppCode provides the following inline refactorings:

  • Inline Variable refactoring replaces redundant variable usage with its initializer. This refactoring is opposite to the Extract Variable refactoring.
  • Inline Method refactoring results in placing method's body into the body of its caller(s). You can opt to:
    • inline all occurrences of the method, and delete the method
    • inline only a single occurrence, and retain the method
    This refactoring is opposite to the Extract Method refactoring.

To perform the inline refactoring

  1. Place the caret in the editor at the desired symbol to be inlined.
  2. Do one of the following:
    • On the main menu or on the context menu, choose Refactor | Inline.
    • Press ⌥⌘N.
  3. In the Inline dialog box that corresponds to the selected symbol, confirm the inline refactoring.

See Also

Last modified: 20 July 2016