Skip to content

Instantly share code, notes, and snippets.

@actaneon
Created January 15, 2010 21:43
Show Gist options
  • Save actaneon/278441 to your computer and use it in GitHub Desktop.
Save actaneon/278441 to your computer and use it in GitHub Desktop.
Add Interface Visual Studio Macro
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics
Public Module Main
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
End Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment