<$BlogRSDURL$>
Ankh Morpork's Finest Coder
Sunday, October 24, 2004

Macro
I was getting tired to typing the same code over and over in different places so I created a small macro to just add the skeleton automatically. I'm hoping to do a project where I add components into VS.NET based on my Thesis work. But thats for much much later. So, now I present to you, A Macro.....

Option Strict Off
Option Explicit Off
Imports
EnvDTE
Imports System.Diagnostics

Public Module RecordingModule

Sub AddMessageBox()
DTE.ActiveDocument.Selection.Text = "MessageBox.Show(this, """", """", MessageBoxButtons.OK, MessageBoxIcon.Error);"
End Sub
End Module


0 Comments:

Post a Comment