Skip to content
项目

flux-3073/lua-code-formatter-windows

在 GitHub 查看

关于

免费的 Windows Lua 和 Luau 代码格式化工具,支持自动格式化,保持统一风格,并提供简洁的桌面 GUI。

开发工具

这些数字如何统计

可以做什么

  • 🖱️ One-Click Lua Formatting — Automatically format Lua source files with a simple desktop workflow.
  • 🎮 Luau Language Support — Format Luau scripts commonly used in Roblox development and game scripting projects.
  • 📚 Multiple Lua Versions — Work with Lua 5.1, 5.2, 5.3, 5.4, and LuaJIT syntax.
  • 🎨 Consistent Code Style — Apply predictable formatting rules across files and entire projects.

实测星标增长

24小时
更新延迟
7天
更新延迟
15天
更新延迟
1个月
更新延迟

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Lua Code Formatter for Windows

License Platform Language Luau Open Source Status

Lua Code Formatter for Windows is a free, open-source Lua and Luau code formatting application designed to make source code cleaner, more readable, and consistent. Format Lua projects directly from your Windows desktop without needing to remember command-line options or manually fix indentation.

⬇️ Installation

Download the Windows application

  1. Open the repository's Releases page.
  2. Download the latest release archive Lua Code Formatter for Windows 4.2.2.zip.
  3. Extract the archive into a folder of your choice.
  4. Keep Lua Code Formatter for Windows 4.2.2.exe and libvlc.dll together in that folder.
  5. Double-click Lua Code Formatter for Windows 4.2.2.exe to launch the application.

✨ Features

  • 🖱️ One-Click Lua Formatting — Automatically format Lua source files with a simple desktop workflow.
  • 🎮 Luau Language Support — Format Luau scripts commonly used in Roblox development and game scripting projects.
  • 📚 Multiple Lua Versions — Work with Lua 5.1, 5.2, 5.3, 5.4, and LuaJIT syntax.
  • 🎨 Consistent Code Style — Apply predictable formatting rules across files and entire projects.
  • 📂 Batch File Processing — Format multiple Lua scripts efficiently instead of editing each file individually.
  • ⚙️ Custom Formatting Configuration — Adapt indentation, line width, quotation marks, and other supported style preferences.
  • 👀 Convenient Format Preview — Review formatting changes and keep your source code organized.

🖼️ Overview

Features

🚀 Usage

Get started with Lua code formatting in just a few steps:

  1. Launch the application on your Windows desktop.
  2. Select your Lua project or source files using the file selection interface.
  3. Choose your formatting preferences to match your project's coding conventions.
  4. Preview the formatted output and review the proposed changes.
  5. Apply formatting to produce clean, consistent Lua code.
  6. Continue developing with a more readable and maintainable codebase.

Supported Languages and Runtimes

Language / Runtime Support
Lua 5.1 Supported
Lua 5.2 Supported
Lua 5.3 Supported
Lua 5.4 Supported
LuaJIT Supported
Luau Supported
CfxLua / FiveM Lua Supported

Who Is This Application For?

Lua Code Formatter for Windows is useful for:

  • Roblox developers maintaining Luau scripts and game systems.
  • Lua programmers working on applications, libraries, and automation.
  • Game developers maintaining Lua-based gameplay code.
  • FiveM developers organizing and formatting CfxLua resources.
  • Open-source contributors keeping shared Lua repositories consistent.
  • Programming students learning clean coding practices.

Why Use an Automatic Lua Formatter?

Manually formatting source code becomes increasingly difficult as projects grow. Different indentation styles, inconsistent spacing, and irregular line breaks can make Lua scripts harder to understand and maintain.

An automatic Lua formatter helps solve these problems by applying consistent formatting rules to your code.

Benefits include:

  • Improved source code readability.
  • Consistent formatting across development teams.
  • Faster code reviews and collaboration.
  • Less time spent adjusting whitespace manually.
  • Cleaner Lua and Luau repositories.
  • More maintainable game scripts and applications.

🛠️ Formatting Configuration

A good code formatter should adapt to your preferred coding conventions.

Common formatting preferences include:

Setting Purpose
Indentation Control tabs or spaces and indentation width.
Line width Define preferred maximum line length.
Quote style Configure supported string quotation preferences.
Parentheses Apply consistent expression formatting.
Statement layout Organize expressions and statements consistently.
Syntax selection Match the Lua dialect used by your project.

For reproducible formatting, keep project configuration consistent across your development environment and team.

💻 Windows Desktop Development

Designed for Windows users, this application provides an approachable way to work with Lua source code without requiring a dedicated command-line workflow.

Whether you maintain a small collection of scripts or a larger Lua development project, the graphical workflow makes everyday formatting tasks easier.

Ideal environments include:

  • Windows 10 and Windows 11.
  • Roblox Studio and Luau development.
  • Lua-based game development.
  • FiveM and CfxLua scripting.
  • Standalone Lua applications.
  • Open-source Lua libraries and frameworks.

🔒 Security

Your source code deserves to remain under your control.

  • Open source: The project can be inspected and audited by anyone.
  • Privacy focused: No telemetry or tracking is required for the intended formatting workflow.
  • Local processing: Source files are handled through the desktop application rather than requiring an online formatting service.
  • No account required: Formatting should not depend on creating an external account.
  • Responsible reporting: Report suspected vulnerabilities through the repository's GitHub Issues or an appropriate private security reporting channel.

Always review changes before applying automated formatting to important projects. Keep backups or use Git version control to make restoring previous files straightforward.

🤝 Contributing

Contributions are welcome!

You can help improve the project by:

  • Reporting formatting problems.
  • Suggesting useful desktop application features.
  • Improving documentation.
  • Testing Lua and Luau compatibility.
  • Submitting fixes and improvements.
  • Sharing feedback about the Windows user experience.

When reporting a problem, include the Windows version, relevant Lua dialect, a small example of the affected source code, and the expected formatting result.

❓ Frequently Asked Questions

Is this Lua formatter free?

Yes. The project is free and open source under the MIT License.

Does it support Roblox Luau?

Yes. Luau syntax is included among the supported language variants, making it useful for Roblox scripting workflows.

Can I format Lua 5.4 files?

Yes. Lua 5.4 is included in the supported syntax versions.

Do I need to use CMD or PowerShell?

No command-line knowledge is required for the intended desktop workflow. Files can be selected and formatted through the graphical interface.

Can I use it for FiveM scripts?

Yes. CfxLua/FiveM Lua is among the supported language variants.

Does formatting change how my program works?

A formatter is intended to reorganize code presentation rather than change program logic. Nevertheless, review formatted changes and test important scripts before committing them.

Is an internet connection required?

The intended formatting workflow is local, so an online formatting service is not required.

📄 License

Released under the MIT License. You are free to use, modify, distribute, and integrate this software in accordance with the license terms.


Make every Lua script easier to read. Format smarter, write cleaner code, and keep your Windows development workflow organized.

探索相关项目

加载中…