Calculates the optimal viewing angle and rotation in the viewport for the object you select. While doing this, the size of the object and its distance to other objects around it are taken into account.
While the object is selected, you can perform the operation with the shift + F shortcut.