Created
January 15, 2010 21:43
-
-
Save actaneon/278441 to your computer and use it in GitHub Desktop.
Add Interface Visual Studio Macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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