stylua
An opinionated Lua code formatter. More information: https://github.com/JohnnyMorganz/StyLua.
- Auto-format a file or an entire directory:
stylua
- Check if a specific file has been formatted:
stylua --check
- Run with a specific configuration file:
stylua --config-path
- Format code from
stdinand output tostdout:
stylua - <
- Format a file or directory using spaces and preferring single quotes:
stylua --indent-type --quote-style
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
