StyLua VSCode ExtensionStyLua is a deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and Luau, built using full-moon. StyLua is inspired by the likes of prettier, it parses your Lua codebase, and prints it back out from scratch, enforcing a consistent code style. InformationFor more information, see the main repository UsageSet StyLua as your formatter when prompted, or add the following configuration to your
If you are working with Luau code, you may need to also configure under the
You can then use StyLua to format your code by running the You can also enable Finding a StyLua binaryYou can specify the path of the StyLua binary using the If no configuration is specified, then we lookup the version through the following steps:
The bundled version of StyLua is downloaded from GitHub releases, and stored in your local storage. By default, the extension downloads the latest version. To configure the version to use, set When a new StyLua version is available, you will be notified on the VSCode status bar. You can disable these notifications
via |