All apps/StyLua

StyLua

stylua

An opinionated Lua code formatter.

Runs as stylua|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 7 fields

Format or check Lua/Luau files and directories with StyLua. Range formatting, stdin, glob filters and per-style overrides other than indentation and column width are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui stylua
Format Lua filesExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories*
any
Verify output
--verify
TasksEach one presets the form for one job
Format in place
filesverify
Check formatting
filescheckoutput_format
ParametersOnly these flags are editable in the form
Check only
Do not rewrite files; print a diff and exit with status 1 if any file needs formatting.
boolean
--check
Check output format
enum
--output-formatstandardunifiedjsonsummary
Verify output
Verify the formatted output before saving each file.
boolean
--verify
Config file
path
--config-path
Search parent directories for config
boolean
--search-parent-directories
Indent type
enum
--indent-typeTabsSpaces
Files or directories
path · positional 0 · repeatable
SourcesEvery flag above is checked against these
readme
To check whether files require formatting (but not write directly to them), use the `--check` flag. - `--output-format=standard`: output a custom diff (default) - `--output-format=unified`: output a unified diff, consumable by tools like `patch` or `delta` - `--output-format=json`: output JSON representing the changes, useful for machine-readable output - `-…
help2026-10-27

raw.githubusercontent.com

Before it fills your prompt, Otty checks the installed stylua against its version. A form that does not match your version is not offered.