${expression}
variable : perform a calculation with field numbers in Save As N Times
${for-snippet}
variable : possibility to iterate a snippet over a glob pattern file list
- Save As N Times : possibility to have variables in the file,
${field[number]}
number is positive or negative.
templates.newFileFromTemplate
: in key bindingargs
propertytemplateName
to select a template.templates.newFileFromTemplate
: in key bindingargs
propertyfileExists
to set action if file already exists (error
,silent
,open
)
- variable
${command}
with optional arguments
- possibility to have variables
${...}
in the result file, with template content$\{...}
README
: prevent KaTex Markdown to recognize a math expression
templates.pasteTemplate
: Insert template with key binding in current file${dateTimeFormat}
propertyoffset
allowwd
,d
andy
for WeekDay, Day and Year${dateTimeFormat}
propertyoffset
calculate WeekDay fast, no need to use-1WD1 -700D
- Construct Template Filename: all lines at file start with
##@@##
create the Template Filename (strip all whitespace at start and end of each line)
${dateTimeFormat}
variable has propertyoffset
to calculate a date in the future or past,+1M +10h
- Construct Template Filename (
##@@##
) line now supports absolute and relative file paths - use the same
Date()
object for all thedate
variables used during template instantiation
- Construct Template Filename (
##@@##
) line now supports${input:description:}
variables
- define properties in
${dateTimeFormat}
variable
- transform (find/replace) file variables
- construct filename in template with initial line starting with
##@@##
and containing variables - variables
${relativeFileDirnameSplit[-1]}
and${workspaceFolderSplit[-1]}
,-1
..-9
, part of the directory relative to end - global snippet
template-file-name
to start constructing a filename for the new file - CHANGELOG.md
- global template
file-variables.txt
to contain new variables
noUI
property of${snippet}
variable
- named input variable
${input:Enter the title:name=title:}
, reuse entered text in input variables with same name - find/replace text from input variable
- setting:
templates.saveAfterInputVariableOnFileCreation
- Save As N Times
- do not add a double extension
- named dateTimeFormats
- Initial release