ItemOperations Interface
Object for performing common file actions.
Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)
Assembly: EnvDTE (in envdte.dll)
Sub ItemOperationsExample() Dim Cmds As Commands = DTE.Commands Dim Cmd As Command Dim Doc As Document Dim TxtDoc As TextDocument DTE.ItemOperations.NewFile("General\Text File") Doc = ActiveDocument TxtDoc = Doc.Object("TextDocument") For Each Cmd In Cmds If (Cmd.Name <> "") Then TxtDoc.Selection.Text = Cmd.Name & vbLf TxtDoc.Selection.Collapse() End If Next End Sub