Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

StyLua

Lua & Luau Code Formatter

Fast and consistent code formatting for Lua and Luau projects.

Lua • Luau • Roblox • Free • Open Source

⬇ Download Latest Version


Features

  • 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

Download

This is the only installation method for StyLua.

Download the appropriate release for your system and start using StyLua.


How to Use

Format a file:

stylua script.lua

Format 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.


Requirements

  • 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.

About

Lightweight developer utility for formatting Lua and Luau files and folders.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages