Whenever i start a new codefile, alot of the time i find myself haveing to add all the xna refrences at the top, so i realised this would make an exilent snippit
save the following xml as usingXNA.snippet
- <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
- <CodeSnippet Format="1.0.0">
<Title>XNA Using statments</Title>
<Author>NekoCake Industries</Author>
<Description>Inserts all the using statments needed for good xna useage</Description>
<HelpUrl>www.nekocake.com</HelpUrl>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Shortcut>UsingXNA</Shortcut>
</Header>
- <Code Language="CSharp">
- <![CDATA[ #region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
#endregion
]]>
f(clean);
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Then start up GSE, click tools -> code snippet manager -> add then find where you saved the xml, and load it in. whenever you need the xna refences, just type UsingXNA and press tab twice when intelesence picks it up!
NekoCake NotePad