Home > Blockchain >  How to define a VScode snippet which pastes some texts by running a code
How to define a VScode snippet which pastes some texts by running a code

Time:10-16

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:

With extension demo of keybinding to add a time stamp with comment and padding

  • Related