[svn] r7416: vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets: enum.snippet interface.snippet l...

iae svnadmin at nemerle.org
Tue Feb 13 18:38:19 CET 2007


Log:
Some more snippets....

Author: iae
Date: Tue Feb 13 18:38:07 2007
New Revision: 7416

Added:
   vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/enum.snippet
   vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/interface.snippet
   vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/lock.snippet
   vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/namespace.snippet
   vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/struct.snippet
   vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/using.snippet

Added: vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/enum.snippet
==============================================================================
--- (empty file)
+++ vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/enum.snippet	Tue Feb 13 18:38:07 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+	<CodeSnippet Format="1.0.0">
+		<Header>
+			<Title>enum</Title>
+			<Shortcut>enum</Shortcut>
+			<Description>Code snippet for enum</Description>
+			<Author>iae</Author>
+			<SnippetTypes>
+				<SnippetType>Expansion</SnippetType>
+				<SnippetType>SurroundsWith</SnippetType>
+			</SnippetTypes>
+		</Header>
+		<Snippet>
+			<Declarations>
+				<Literal>
+					<ID>name</ID>
+					<ToolTip>Enum name</ToolTip>
+					<Default>MyEnum</Default>
+				</Literal>
+			</Declarations>
+			<Code Language="Nemerle">
+<![CDATA[enum $name$
+{
+	$selected$
+}$end$
+]]>
+			</Code>
+		</Snippet>
+	</CodeSnippet>
+</CodeSnippets>
\ No newline at end of file

Added: vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/interface.snippet
==============================================================================
--- (empty file)
+++ vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/interface.snippet	Tue Feb 13 18:38:07 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+	<CodeSnippet Format="1.0.0">
+		<Header>
+			<Title>interface</Title>
+			<Shortcut>interface</Shortcut>
+			<Description>Code snippet for interface</Description>
+			<Author>iae</Author>
+			<SnippetTypes>
+				<SnippetType>Expansion</SnippetType>
+				<SnippetType>SurroundsWith</SnippetType>
+			</SnippetTypes>
+		</Header>
+		<Snippet>
+			<Declarations>
+				<Literal>
+					<ID>name</ID>
+					<ToolTip>Interface name</ToolTip>
+					<Default>MyInterface</Default>
+				</Literal>
+			</Declarations>
+			<Code Language="Nemerle">
+<![CDATA[interface I$name$
+{
+	$selected$
+}$end$
+]]>
+			</Code>
+		</Snippet>
+	</CodeSnippet>
+</CodeSnippets>
\ No newline at end of file

Added: vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/lock.snippet
==============================================================================
--- (empty file)
+++ vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/lock.snippet	Tue Feb 13 18:38:07 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+	<CodeSnippet Format="1.0.0">
+		<Header>
+			<Title>lock</Title>
+			<Shortcut>lock</Shortcut>
+			<Description>Code snippet for lock statement</Description>
+			<Author>iae</Author>
+			<SnippetTypes>
+				<SnippetType>Expansion</SnippetType>
+				<SnippetType>SurroundsWith</SnippetType>
+			</SnippetTypes>
+		</Header>
+		<Snippet>
+			<Declarations>
+				<Literal>
+					<ID>expression</ID>
+					<ToolTip>Expression to evaluate</ToolTip>
+					<Default>this</Default>
+				</Literal>
+			</Declarations>
+			<Code Language="nemerle">
+<![CDATA[lock ($expression$)
+{
+  $selected$
+}$end$
+]]>
+			</Code>
+		</Snippet>
+	</CodeSnippet>
+</CodeSnippets>
\ No newline at end of file

Added: vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/namespace.snippet
==============================================================================
--- (empty file)
+++ vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/namespace.snippet	Tue Feb 13 18:38:07 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+	<CodeSnippet Format="1.0.0">
+		<Header>
+			<Title>namespace</Title>
+			<Shortcut>namespace</Shortcut>
+			<Description>Code snippet for namespace</Description>
+			<Author>iae</Author>
+			<SnippetTypes>
+				<SnippetType>Expansion</SnippetType>
+				<SnippetType>SurroundsWith</SnippetType>
+			</SnippetTypes>
+		</Header>
+		<Snippet>
+			<Declarations>
+				<Literal>
+					<ID>name</ID>
+					<ToolTip>Namespace name</ToolTip>
+					<Default>MyNamespace</Default>
+				</Literal>
+			</Declarations>
+			<Code Language="Nemerle">
+<![CDATA[namespace $name$
+{
+	$selected$
+}$end$
+]]>
+			</Code>
+		</Snippet>
+	</CodeSnippet>
+</CodeSnippets>
\ No newline at end of file

Added: vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/struct.snippet
==============================================================================
--- (empty file)
+++ vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/struct.snippet	Tue Feb 13 18:38:07 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+	<CodeSnippet Format="1.0.0">
+		<Header>
+			<Title>struct</Title>
+			<Shortcut>struct</Shortcut>
+			<Description>Code snippet for struct</Description>
+			<Author>iae</Author>
+			<SnippetTypes>
+				<SnippetType>Expansion</SnippetType>
+				<SnippetType>SurroundsWith</SnippetType>
+			</SnippetTypes>
+		</Header>
+		<Snippet>
+			<Declarations>
+				<Literal>
+					<ID>name</ID>
+					<ToolTip>Struct name</ToolTip>
+					<Default>MyStruct</Default>
+				</Literal>
+			</Declarations>
+			<Code Language="Nemerle">
+<![CDATA[struct $name$
+{
+	$selected$
+}$end$
+]]>
+			</Code>
+		</Snippet>
+	</CodeSnippet>
+</CodeSnippets>
\ No newline at end of file

Added: vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/using.snippet
==============================================================================
--- (empty file)
+++ vs-plugin/trunk/Nemerle.VsIntegration/CodeSnippets/Snippets/using.snippet	Tue Feb 13 18:38:07 2007
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+	<CodeSnippet Format="1.0.0">
+		<Header>
+			<Title>using</Title>
+			<Shortcut>using</Shortcut>
+			<Description>Code snippet for using statement</Description>
+			<Author>iae</Author>
+			<SnippetTypes>
+				<SnippetType>Expansion</SnippetType>
+				<SnippetType>SurroundsWith</SnippetType>
+			</SnippetTypes>
+		</Header>
+		<Snippet>
+			<Declarations>
+				<Literal>
+					<ID>name</ID>
+					<ToolTip>Variable name</ToolTip>
+					<Default>x</Default>
+				</Literal>
+				<Literal>
+					<ID>resource</ID>
+					<ToolTip>Resource to use</ToolTip>
+					<Default>resource</Default>
+				</Literal>
+			</Declarations>
+			<Code Language="nemerle">
+<![CDATA[using($name$ = $resource$)
+{
+  $selected$
+}$end$
+]]>
+			</Code>
+		</Snippet>
+	</CodeSnippet>
+</CodeSnippets>
\ No newline at end of file



More information about the svn mailing list