src/Misc/EntityFramework.PowerShell.Utility/DomainDispatcher.cs
/// <summary>
/// This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
/// 
/// Opens a new text file in Visual Studio without creating the file on disk.
/// </summary>
/// <param name="text">The text to add to the new file.</param>
/// <param name="item">
/// The virtual path to the item template to use for the new file based on the tree nodes 
/// from the left pane of the new item dialog box and the item name from the right pane.
/// </param>
This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.

Opens a new text file in Visual Studio without creating the file on disk.
This API supports the Entity Framework infrastructure and is not intended to be used directly from your code . Opens a new text file in Visual Studio without creating the file on disk .
public void NewTextFile(string text, string item = @"General\Text File")
        {
            var window = _dte.ItemOperations.NewFile(item);
            var textDocument = (TextDocument)window.Document.Object("TextDocument");
            var editPoint = textDocument.StartPoint.CreateEditPoint();
            editPoint.Insert(text);
        }
public void NewTextFile ( string text , string item = @"General\Text File" ) { var window = _dte . ItemOperations . NewFile ( item ) ; var textDocument = ( TextDocument ) window . Document . Object ( " " ) ; var editPoint = textDocument . StartPoint . CreateEditPoint ( ) ; editPoint . Insert ( text ) ; }
This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.
This API supports the Entity Framework infrastructure and is not intended to be used directly from your code .
text
string
The text to add to the new file.
The text to add to the new file .
item
string
The virtual path to the item template to use for the new file based on the tree nodes
from the left pane of the new item dialog box and the item name from the right pane.
The virtual path to the item template to use for the new file based on the tree nodes from the left pane of the new item dialog box and the item name from the right pane .