A tool to generate Custom Author Info at the top of your file.
Press F1
in VSCode, type ext install
and then look for vscode-author-generator
.
- 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.
Preferences
->Settings
to add your own settingsauthor-generator.author
author name, will replace[author]
in your*.tpl
fileauthor-generator.email
. author email, will replace[email]
in your*.tpl
fileauthor-generator.dateFormat
will change your date format(default format isYYYY-MM-DD HH:mm:ss
)author-generator.updateOnSave
settrue
to trigger updateInfo on save, only*.tpl
template files exsit will trigger
- Generate Author Info - generate your author info right now.
- 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}
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
intemplates
directory will make*.py
files add this template info. - notice:
[author]
,[email]
will automatically replaced with infomation in your VSCode Configration.