The Extract Define refactoring (&shortcut:CIDR.Lang.IntroduceDefine; or Refactor | Extract | Define) helps you simplify complicated statements by defining the selected expression as macro using the #define directive. The resulting macro can be placed in the same file or in the associated header.

extract define