Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>vscTemplateNew to Visual Studio Code? Get it now.
vscTemplate

vscTemplate

daoye

|
345 installs
| (1) | Free
A file template extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vsctemplate README

This extension "vsctemplate", It's an experimental extension. At the moment, It's very simple and crude. It can: When we create a file in vsc, can be based on pre-defined template automatically generate the file content.

这是一个实验性质的插件,目前它的功能非常简陋。 它目前能为我们做的是: 当我们在vsc中创建文件后,能够依据事先定义好的模板自动生成文件内容。

Features

Auto insert template from template file when a new file created.

Support variable %FILE%, %NAME%, %YEAR%, %MONTH%, %DAY% in template file.

Requirements

Extension Settings

This extension contributes the following settings:

  • vsctemplate.templatePath: Specify template files folder, default is null.

Known Issues

How to set the template files ?

A very simple template maybe like this:

#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: %NAME%
#
# Copyright © %YEAR% All rights reserved.
#

"""

"""

The template file name could be: "_template_.py" or other you like. This extension use file's extension name to load template.

Release Notess

0.0.1 Beta

  • Support auto insert content from template file, when the file was created.
  • Support variable %FILE%,%NAME%, %YEAR%, %MONTH%, %DAY% in template file.

For more information

  • Contact me

Enjoy!

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