Fast and consistent code formatting for Lua and Luau projects.
Lua • Luau • Roblox • Free • Open Source
- Lua & Luau Formatting
- Roblox Luau Support
- Automatic Code Formatting
- Consistent Code Style
- Custom Formatting Configuration
- File & Folder Formatting
- Formatting Check Mode
- Require Sorting
- Format Selected Code
- Fast & Lightweight
This is the only installation method for StyLua.
Download the appropriate release for your system and start using StyLua.
Format a file:
stylua script.luaFormat a folder:
stylua src/Check formatting without changing files:
stylua --check .Use a stylua.toml file to configure formatting preferences for your project.
Editor integrations can format Lua and Luau files or selected code through StyLua.
- Lua or Luau source files
- A StyLua release for your system
StyLua is free and open source software. Lua, Luau and Roblox are trademarks of their respective owners.