7. The Menus / 7.4 The Layout Menu
Fit in Vector Layer creates a new rectangular vector layer with the size and position of the active layer. Without an active layer the vector layer gets the document size.
The fill color will be the foreground color and the line color will be transparent.
This function is useful for various tasks, for example: