Skip to main content

Keyboard shortcuts + command for resizing: fill container etc


Michael_Campbell

Chaining resizing options (fill container, fixed, hug etc) on auto layout frames takes a lot of time. it would be great to have keyboard shortcuts for them.
If not keyboard short cuts then commands I can get to with cmd+P.
Also: I thing double clicking an edge could make it fill the container (similar to hitting the edge of a text area)

Suggestions (given that auto layout is Shift+A):

  • SHIFT+A happens on release, not key down so that you can then…
  • SHIFT+A+LEFT = Hug
  • SHIFT+A+RIGHT = Fill
  • SHIFT+A+DOWN = Fixed

Existing:

17 replies

Kylie2
  • 1 reply
  • March 22, 2022

Love and second this idea!!


Michael_Oberle

Up voting this. This would save much time.


Jason_Lockwood

YES PLEASE! Updating components to use Auto Layout can be really painful because there is no easy way to quickly assign sizing option or constraints.


xrv
  • 6 replies
  • May 9, 2022

+1
Or at the very least add these as menu items so we can add our own keyboard shortcuts.


xrv
  • 6 replies
  • May 9, 2022

Or even as options in the command palette:


xrv
  • 6 replies
  • May 10, 2022

The new version of auto-layout makes resizing pretty easy:

double-click the frame edge → Hug Contents
option key + double-click frame edge → Fill Container

This update looks like a massive improvement 🙂

Figma Help Center

Lukas_Figely

You saved my few months of my life 😅😭 THX


fernandolins_cs

It’s great to have this but anyone using a wacom tablet knows how bad it is to double click anything with a small hit area, would love this to have a keyboard-only alternative.


Timothy_Sullivan

Any updates on this?


Brian_Gibbons1

(post deleted by author)


daisyma
  • New Member
  • 2 replies
  • August 9, 2022

to fill container:
alt or option + double click a vertical edge of a bounding box

to hug a container:
double click a vertical edge of a bounding box


Heath_Flohre

Unfortunately, these don’t work within a component with nest frames. Would be so helpful if they did, along with having the on-screen spacing adjusters.


  • 0 replies
  • November 16, 2022

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


florian_fangohr

I think anyone with extremities, operating any kind of machine does. 🙂

If shortcuts are too hard, just please give us menu items only, so we can create our own shortcuts for hug and fill with system settings. Life is too short for slow UI.


Dawid_Pawlak

It is frustrating that these do not work with nested frames, even though they should.


Vlady_Yakovenko

I do my work using voice commands,so not having a shortcut available really limits my productivity. the cost of adding shortcuts is not high so please please do


Metin Saray
  • New Member
  • 2 replies
  • February 23, 2025

Clicking on the edges does not work for those who wants to assign these actions to their Mouse keys. Because these actions do not have their own ‘key combinations’, we can’t call these actions from any third party mouse, hardware or application. They put this function into their shortcut menu, but it still desperately needs a keyboard combination so I can call that shortcut. It’s quite annoying that a feature that’s used the most by many does not this capability still.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings