In RStudio
, there is a snippet as follows:
snippet ts
`r paste("#", date(), "------------------------------\n")`
It will pastes some texts by running date()
,
for example,
# Sat Oct 15 11:04:22 2022 ------------------------------
.
How to define this in VScode
?
CodePudding user response: