Auto-Align

A quick grid snap for when elements are nearly lined up but a few pixels off.

Applies To

livediagram, livedocuments, livedesign and livehuddle

Auto-Align is the gentle tidier. It rounds every boxed element's size to a 10 px grid and lines elements up on the grid by the edges and centres they already (nearly) share, so elements that were almost aligned become exactly aligned and tiny drift collapses, while elements that were already lined up stay lined up. The use case is "these things are a few pixels off", not "this tab has no layout".

Elements that sit a few pixels off the grid snap onto the nearest grid lines.

What It Does

  • It keeps what is lined up, lined up. Elements whose centres or edges sit within a few pixels of each other snap onto one shared grid line, so a column of items of different widths stays centred.
  • It keeps even spacing even. Rows that were an equal step apart stay an equal step apart.
  • It never moves anything far: an element moves at most the few pixels to the line it already nearly shares, so one that was roughly in place stays roughly in place, only neater.
  • It never makes things worse. A snap that would make two elements overlap is skipped for both.
  • It works on every element on the active tab, not just a selection.
  • Elements keep their proportions. A square stays square; one drawn wide stays wide. An element whose aspect ratio you locked keeps its ratio.
  • Running it again changes nothing. Once a tab is tidy, running it moves nothing and a notice says the tab is already tidy.

Running It

Open the command palette (⌘K / Ctrl+K) and type Auto-align.

Choose Auto-align to Grid under the palette's Actions.
Everything on the tab snaps to the grid in a single undoable step.

If the result isn't what you wanted, one undo (⌘Z / Ctrl+Z) restores the previous positions exactly. Auto-Align needs edit access.

Auto-Align is safe to run often. Since running it again changes nothing and it never moves anything far, it's a low-risk way to keep a tab looking tidy as you work.

Was this article helpful?

Still need help?

Try Troubleshooting, or tell us what you were trying to do.

Contact us