Skip to content

excaliburhan/vscode-author-generator

Repository files navigation

vscode-author-generator

A tool to generate Custom Author Info at the top of your file.

gif

Installation

Press F1 in VSCode, type ext install and then look for vscode-author-generator.

Features

  • Support multiple templates, js, css, html/htm file types are supported for now.
  • Support custom infomation, author name, email, date info is supported for now.
  • Add cmd+u keybindings for quick update.

Usage

Before Use

  • Preferences -> Settings to add your own settings
  • author-generator.author author name, will replace [author] in your *.tpl file
  • author-generator.email. author email, will replace [email] in your *.tpl file
  • author-generator.dateFormat will change your date format(default format is YYYY-MM-DD HH:mm:ss)
  • author-generator.updateOnSave set true to trigger updateInfo on save, only *.tpl template files exsit will trigger

Commands

  • Generate Author Info - generate your author info right now.

Manage Custom Templates

1. Open extension directory and find vscode-author-generator

  • Windows: %USERPROFILE%.vscode\extensions{edwardhjp.vscode-author-generator-version}
  • Mac: ~/.vscode/extensions/{edwardhjp.vscode-author-generator-version}
  • Linux: ~/.vscode/extensions/{edwardhjp.vscode-author-generator-version}

2. Edit or add template file

  • vscode-author-generator use file suffix as template name. eg: js.tpl is the template for *.js files. if the specific template file doesn't exsit, default.tpl will be used.
  • if you want to add another template, just make sure the template filename is correct. eg: add a file named py.tpl in templates directory will make *.py files add this template info.
  • notice: [author], [email] will automatically replaced with infomation in your VSCode Configration.

About

A Tool To Generate Author Info

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published