Created
December 31, 2009 20:13
-
-
Save actaneon/266888 to your computer and use it in GitHub Desktop.
VS2008 Add Interface 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
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