Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Luau Script TemplatesNew to Visual Studio Code? Get it now.
Luau Script Templates

Luau Script Templates

ArtLWR

|
2 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

luau-script-templates

Features

This is a simple extension that lets you create, save and use templates for Roblox luau scripts.

By pressing CTRL + ALT + P, you can search for "Make Template". Once you've used that command, it will open a blank textfile in which you can define a template.

After you have defined your template, you can once again press CTRL + ALT + P and this time search for "Save Tempalte". Once you've used that command, you will be prompted to type in a name and select a type for your template. After that you will be prompted to save the file but you can ignore it and choose not to save the file.

If you want to get rid of one of your templates, you can once again press CTRL + ALT + P and this time search for "Remove Tempalte" and select the one you want to remove.

If you want to edit one of your existing templates, you can once again press CTRL + ALT + P and this time search for "Edit Tempalte" and select the one you want to edit. Once you're done just save it under the same name and type.

There are two types for templates:

  • Script (For local and server script)
  • Module (For module scripts)
  • Any (...)

Within your template you can define variables like:

  • {DATE} = The date on which the file was created.
  • {TIME} = The time at which the file was created.
  • {DATETIME} = The date and time at which the file was created.
  • {USERNAME} = The Github or VSCode username of whoever created the file.
  • {FILENAME} = The name of the file (especially useful for modulescripts).
  • {FOLDERNAME} = The name of the file (especially useful for modulescripts when using something like Leif Stouts genRojoTree).

Once you've defined your templates, it's as simple as making a new .luau file. As soon as you make such a file, you will be prompted with your templates.

Requirements

If you want to use the {USERNAME} variable, you have to sign in with either Github or Microsoft, else it defaults to just "User".

Extension Settings

No settings.

Known Issues

None.

Release Notes

It's p cool ig.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft