On macOS, press Cmd + . On Windows, press Ctrl + . The selected code will be wrapped within a content or controls property. You're then free to rename the class as ...