A useful code snippit
cubed2D
November 10th, 2007.
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“>
- <Header>
 <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>
- <SnippetTypes>
 <SnippetType>Expansion</SnippetType>
 </SnippetTypes>
 <Shortcut>UsingXNA</Shortcut>
 </Header>
- <Snippet>
- <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
 ]]>
 </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!
#1 Mincher - 13 November, 8:58 AM
How handy.