# tiled-layout-max-columns

Source: https://libtmux.org/en/tmux/latest/catalog/options/tiled-layout-max-columns/

> Set the maximum number of columns in the tiled layout.

option tmux3.7c

Set the maximum number of columns in the tiled layout.

* Scope

  window

* Type

  Number

* Default

  `0`

* Values

  0 to 65535

* Set

  [`set-option`](https://libtmux.org/en/tmux/latest/manual/set-option/) `-w tiled-layout-max-columns value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/latest/manual/show-options/) `-w tiled-layout-max-columns`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/options/tiled-layout-max-columns/#description)

Set the maximum number of columns in the `tiled` layout. A value of 0 (the default) means no limit. When a limit is set, panes are arranged to not exceed this number of columns, with additional panes stacked in extra rows.

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/options/tiled-layout-max-columns/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/tiled-layout-max-columns/) : present
* tmux 3.2a : not present

## Source[#](https://libtmux.org/en/tmux/latest/catalog/options/tiled-layout-max-columns/#source)

* Defined in

  [`options-table.c:1481`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L1481)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/latest/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#options-tiled-layout-max-columns)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/options/tiled-layout-max-columns/#used-by)

Library documentation that names this option.

* Rust

  [`options.generated.TILED_LAYOUT_MAX_COLUMNS`](https://libtmux.org/en/rs/latest/reference/options-generated-tiled_layout_max_columns/)

* Go

  [`tmux.GlobalWindowScope.SetTiledLayoutMaxColumns`](https://libtmux.org/en/go/latest/reference/tmux-globalwindowscope-settiledlayoutmaxcolumns/), [`tmux.Window.SetTiledLayoutMaxColumns`](https://libtmux.org/en/go/latest/reference/tmux-window-settiledlayoutmaxcolumns/), [`tmux.WindowOptionValues.TiledLayoutMaxColumns`](https://libtmux.org/en/go/latest/reference/tmux-windowoptionvalues-tiledlayoutmaxcolumns/)
