There are no DateTime functions available for snippets but here is a macro that will insert the current DateTime:

Sub PrintDateTime()
    If (Not IsNothing(DTE.ActiveDocument)) Then
        Dim selection As TextSelection = DTE.ActiveDocument.Selection
        selection.Insert(DateTime.Now.ToString())
    End If
End Sub

You can open your macro explorer with Alt + F8 and create a new module and paste the code above inside the module that is generated.

Then create a new keyboard shortcut and bind it to your macro.

相关文章:

  • 2021-11-06
  • 2022-12-23
  • 2021-09-09
  • 2021-11-07
  • 2021-11-12
  • 2021-10-22
  • 2021-08-01
  • 2021-12-05
猜你喜欢
  • 2021-05-17
  • 2021-12-08
  • 2022-12-23
  • 2021-07-28
相关资源
相似解决方案