How to render from viewport?

How to render from viewport?
Or auto create camera from viewpoint?

you can use the render preview window to render a part of, or the whole model from your current viewport. You can also press ‘Ctrl’ + ‘Alt’ + ‘NUMPAD 0’ to align the active camera to your current viewport.

Thank you very much!