매크로 만들기

jjuiddong
이동: 둘러보기, 찾기
   Sub InsertFunctionComment()
       Dim textSelection As EnvDTE.TextSelection
       textSelection = CType(DTE.ActiveDocument.Selection(), EnvDTE.TextSelection)
       textSelection.Text = "/**"
       textSelection.NewLine()
       textSelection.StartOfLine()
       textSelection.Text = " @brief "
       textSelection.NewLine()
       textSelection.StartOfLine()
       textSelection.Text = " @date " + System.DateTime.Now.Date
       textSelection.NewLine()
       textSelection.StartOfLine()
       textSelection.Text = "*/"
       textSelection.NewLine()
   End Sub


   Sub InsertHeaderComment()
       Dim textSelection As EnvDTE.TextSelection
       textSelection = CType(DTE.ActiveDocument.Selection(), EnvDTE.TextSelection)
       textSelection.Text = "/**"
       textSelection.NewLine()
       textSelection.StartOfLine()
       textSelection.Text = " @filename " + DTE.ActiveDocument.Name
       textSelection.NewLine()
       textSelection.StartOfLine()
       textSelection.Text = " "
       textSelection.NewLine()
       textSelection.StartOfLine()
       textSelection.Text = " "
       textSelection.NewLine()
       textSelection.StartOfLine()
       textSelection.Text = "*/"
       textSelection.NewLine()
   End Sub
개인 도구
이름공간

변수
행위
둘러보기
도구모음