A Tool To Generate Author Info
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
templates
.eslintrc.json
.gitignore
.vscodeignore
CHANGELOG.md
README.md
example.gif
extension.js
generator.js
jsconfig.json
package.json
vscode-author-generator-0.0.1.vsix
vscode-author-generator-0.0.2.vsix
vscode-author-generator-0.0.3.vsix
vscode-author-generator-0.0.4.vsix
vscode-author-generator-0.0.5.vsix
yarn.lock

README.md

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.

Usage

Before Use

  • Preferences -> Settings, add author-generator.author and author-generator.email.

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.