I created a simple code snippet in c# which add the line
Debug.WriteLine("");
now the next step would be, when you use the snippet, to autocreate
using System.Diagnostic;
is there any way to automatically create the reference? I tried and set the snippets Reference and Import elements this way:
<Snippet>
<References>
<Reference>
<Assembly>System.dll</Assembly>
</Reference>
</References>
<Imports>
<Import>
<Namespace>System.Diagnostic</Namespace>
</Import>
</Imports>
.
.
.
</Snippet>
but it doesn't work
using
statement, you can just pressCTRL + .
on the class name and then pressenter
to select which statement to use. – Queenqueena