Lua File Creator is a Visual Studio Code extension that helps you quickly scaffold Lua and Luau files, including support for the Roblox Knit framework. With configurable file types and naming conventions, this tool boosts productivity when working with Roblox Lua projects.
- Quickly create common Lua file types:
ModuleScriptScript(Server)LocalScript(Client)
- Optional support for Knit framework:
ControllerService
- Intelligent filename suggestions and validation
- Automatic incrementing if file already exists
- Simple templates included for quick file creation
- Works with
.lua,.luau, or any custom extension
- VS Code 1.60.0 or newer
- A workspace folder must be open in VS Code to create files
This extension contributes the following settings under Settings in your settings.json:
| Setting | Type | Description |
|---|---|---|
luafilecreator.Settings.type |
string |
File extension to use (e.g., .lua, .luau) |
luafilecreator.Settings.Knit |
boolean |
Enable/disable Knit-specific file types |
Example:
{
"luafilecreator.Settings": {
"type": ".luau",
"Knit": true
}
}You can trigger these commands via the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
Lua File Creator: Create ModuleScriptLua File Creator: Create Client ScriptLua File Creator: Create Server ScriptLua File Creator: Create Knit ControllerLua File Creator: Create Knit Service
Context menus for file creation are also available in the Explorer pane when enabled.
- Template contents are currently minimal; customizable templates are not yet supported
- Filename validation is strict and may block some edge cases
- Initial release with basic Lua file creation
- Fixed bug with file extension handling
- Improved validation for Knit file names
- Added intelligent file naming and incrementing
- Enabled setting changes to take effect live
Leave a ⭐ on the GitHub repo (if public) or share it with fellow Lua developers!
If you find this extension helpful and want to support its development, you can Buy Me a Coffee — every bit of support helps keep the updates coming!
