Skip to content

Instantly share code, notes, and snippets.

@actaneon
Created December 31, 2009 20:13
Show Gist options
  • Save actaneon/266888 to your computer and use it in GitHub Desktop.
Save actaneon/266888 to your computer and use it in GitHub Desktop.
VS2008 Add Interface Macro
Sub AddInterface()
Dim interfaceName As String = Microsoft.VisualBasic.Interaction.InputBox("Name", "Add Interface")
If Not String.IsNullOrEmpty(interfaceName) Then
If Not interfaceName.ToLower.EndsWith(".vb") Then
interfaceName &= ".vb"
End If
DTE.ItemOperations.AddNewItem("Code\Interface", interfaceName)
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment