If I try using the "Create GUID" tool using "Tool" > "Create GUID", I get a box that has six different snippets which contains GUIDs. But it doesn't offer the option of providing only the GUID. Is there any way to do this?
I'm using Visual Studio Professional 2019, version 16.1.6, and .NET version 4.8.03761.
You can use the following command (language C#) for my Visual Commander extension to insert a plain GUID:
public class C : VisualCommanderExt.ICommand
{
public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package)
{
EnvDTE.TextSelection ts = DTE.ActiveDocument.Selection as EnvDTE.TextSelection;
ts.Text = System.Guid.NewGuid().ToString();
}
}