Align camera to view in Blender

Blender 2.79

  1. Create a camera.
  2. Press Ctrl + Alt + 0.

This command will align the Scene’s Active Camera to the view,
And not the camera that is selected as the Active Object.
To make the selected camera the active camera:
In the 3D View select:
View > Cameras > Set Active Object as Camera