Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Template Generator v1.4.5New to Visual Studio Code? Get it now.
Template Generator v1.4.5

Template Generator v1.4.5

filipkaracic

|
487 installs
| (0) | Free
Files/Folders template for vscode. A fork from https://github.com/DengSir/template-generator-vscode.git
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Template Generator

This extension helps in creating files and folders easily from defined templates. This version of the Template Generator extension allows creating files when some folders in the tree already exist.

Features

  • File template support
  • Folder template support

Usages

Commands

  • Files: New File from Template
  • Template: Open Templates Folder

Default templates path

  • Windows : %HOMEPATH%/.vscode/templates
  • Linux : ~/.vscode/templates
  • Mac : ~/.vscode/templates

Custom fields

  • {__name__} : file name
  • {__author__} : author
  • {__email__} : email
  • {__link__} : link
  • {__date__} : create time
  • {__camelCaseName__} : camelCaseFileName
  • {__pascalCaseName__} : PascalCaseFileName
  • {__snakeCaseName__} : snake_case_file_name
  • {__kebabCaseName__} : kebab-case-file-name
  • {__lowerDotCaseName__} : lower.dot.case.file.name
  • {__delete__} : empty string

You can define the name displayed on the template selector, like:

  • {__name__.python}.py

Example

File name :

{__name__.python}.py

File content :

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# {__name__}.py
# @Author : {__author__} ({__email__})
# @Link   : {__link__}
# @Date   : {__date__}

More Example

Default templates

  • html.html
  • javascript.js
  • lua.lua
  • python.py
  • typescript.ts
  • python Folder

Extension Settings

This extension contributes the following settings:

Settings

  • templateGenerator.templatesPath : Where do you want to save the template Settings
  • templateGenerator.openFileByFileTemplate : Open the file when the file is created by file template
  • templateGenerator.openFilesByFolderTemplate : Open all files when the files is created by folder template

Fileds

  • templateGenerator.fields.author : Custom fields of Template Generator: author
  • templateGenerator.fields.email : Custom fields of Template Generator: email
  • templateGenerator.fields.link : Custom fields of Template Generator: link

Known Issues

Release Notes

For more information

Enjoy!

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