Extract Constant

Extract a value to a constant

Highlight the value that you want to extract to a constant and press ⌥⌘C (macOS), or Ctrl+Alt+C (Windows/Linux), to extract it.

Extracting constants can be useful in improving the readability of your code.