Auto-fit boundary to viewport

Can there be a right click dropdown item, or somthing to that effect, that auto adjust the viewp[ort boundary to elarge/shrink to perfectly frame the full extent of what’s visible?