- Download the latest release of the plugin
- Un-zip
- Double-click on fit-to-parent.sketchplugin
Quickly fit a layer to its parent* with keyboard shortcuts:
- π¨βπ¦ Fit to parent
ctrl alt cmd p
βοΈ Fit to parent's widthctrl alt cmd w
βοΈ Fit to parent's heightctrl alt cmd h
*A parent can either be a group or an artboard depending on your layer/group structure. This can be super handy.
- Sometimes fitting text boxes to their parent can be screwy
- Aspect-ratio-locked shapes (squares, circles, etc) sometimes behave unpredictably
This plugin was created using skpm
. For a detailed explanation on how things work, checkout the skpm Readme.