Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Create Files With Custom TemplateNew to Visual Studio Code? Get it now.
Create Files With Custom Template

Create Files With Custom Template

YoungJin Park

|
52 installs
| (0) | Free
createFilesWithCustomTemplate is an extension for Visual Studio Code that enables the quick and easy creation of new files using user-defined templates. It streamlines the process of generating components, configuration files, and other file types, ensuring consistency and efficiency in your workflo
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Create Files With Custom Template

This is a VSCode extension.

Have you ever found yourself repeatedly creating files of the same format, such as storybook files or component files? Such repetitive tasks can be tedious. However, with the ability to create templates, you can easily generate files of the same format using the "Create Files With Custom Template" feature. This is available as a VSCode extension, making it easy to install and use.

How to Use

1. Install the Extension

Click here to install.

2. Creating Templates

2.1. Create a customTemplates Folder at the Project's Root Path

image
  • Important Notes
    • Please create it at the project's root path.
    • The folder must be named customTemplates.

2.2. Creating a Template

image
  1. Create it inside the customTemplates folder.
  2. In the file name and code, {{name}} will be replaced with the input you provide during creation.
  3. You can create multiple templates at once by placing them in a folder.
  • Important Notes
    • Templates can only be created up to 1-depth.
    • Folder within a folder structure is not allowed.

3. Examples

3.1 Creating a Single Template

https://github.com/yogjin/Create-Files-With-Custom-Template/assets/33623078/3401fd52-ecf8-47e1-ae6a-46a5642f5d79

3.2 Creating Multiple Templates

https://github.com/yogjin/Create-Files-With-Custom-Template/assets/33623078/82fe95f8-95d3-4fff-b7be-54069896acbe

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