Extract type refactorings

Quickly extract a selected TypeScript type to a new interface or type alias.

This is helpful when cleaning up code or if you want to reuse a type somewhere else in your project

Here’s the “extract” keyboard shortcut I use that supports both extract type and extract constant:

{
  "key": "ctrl+shift+e",
  "command": "editor.action.refactor",
  "args": {
    "kind": "refactor.extract",
    "preferred": true,
    "apply": "first"
  }
}