AppCode
 
Get AppCode

Extract define

Last modified: 27 December 2022

Language: Objective-C

Shortcut: Ctrl+Alt+D

The Extract Define refactoring method defines the selected set of tokens as macro using #define directive and replaces the set of tokens with macro call in the code; macro definition can be located in the current file or moved to the related header file.

https://resources.jetbrains.com/help/img/idea/2023.1/ac_extract_define.png
Gif