매크로 만들기

jjuiddong
Jjuiddong (토론 | 기여) 사용자의 2013년 12월 3일 (화) 09:47 판

(비교) ← 이전 판 | 최신판 (비교) | 다음 판 → (비교)
이동: 둘러보기, 찾기
   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
개인 도구
이름공간

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