摘要: 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 IfEnd Sub You 阅读全文
posted @ 2011-07-13 17:34 扯 阅读(191) 评论(0) 推荐(0) 编辑