When I try to find a shortcut to add interface to my project, I didn’t find, this was very weird to me because I thought sure I can’t find it but it’s there, but when I deeply search I find there is not, so I decide to post an article on how to do it?
See the video
The code for the Add interface Module as the following:
Public Module AddInterfaceModule
Dim interfaceName As String = Microsoft.VisualBasic.Interaction.InputBox("Name", "Add Interface")
If Not interfaceName.ToLower.EndsWith(".cs") Then
interfaceName &= ".cs"
DTE.ItemOperations.AddNewItem("Visual C#CodeInterface", interfaceName)