Simple For


posted by Richard Giles
02-17-2009

Downloads: 263
File size: 994 B
Views: 699

Embed
Simple For
  1. <?xml version="1.0"?> 
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
  3.     <CodeSnippet Format="1.0.0"
  4.         <Header> 
  5.             <Title>Simple For</Title> 
  6.             <Shortcut>for</Shortcut> 
  7.             <Description>inserts simple for statement</Description> 
  8.             <Author /
  9.             <SnippetTypes> 
  10.                 <SnippetType>Expansion</SnippetType> 
  11.             </SnippetTypes> 
  12.         </Header> 
  13.         <Snippet> 
  14.             <Declarations> 
  15.                 <Literal> 
  16.                     <ID>param1</ID> 
  17.                     <ToolTip /
  18.                     <Default>$x=1</Default> 
  19.                 </Literal> 
  20.                 <Literal> 
  21.                     <ID>param2</ID> 
  22.                     <ToolTip /
  23.                     <Default>$x -gt 10</Default> 
  24.                 </Literal> 
  25.                 <Literal> 
  26.                     <ID>param3</ID> 
  27.                     <ToolTip /
  28.                     <Default>$x++</Default> 
  29.                 </Literal> 
  30.                 <Literal> 
  31.                     <ID>param4</ID> 
  32.                     <ToolTip /
  33.                     <Default>$x</Default> 
  34.                 </Literal> 
  35.             </Declarations> 
  36.             <Code Language="PowerShell" Kind="60"><![CDATA[for ($param1$; $param2$; $param3$) { 
  37.     $param4
  38. }]]></Code> 
  39.         </Snippet> 
  40.     </CodeSnippet> 
  41. </CodeSnippets> 
Filed under: ,

Inserts simple for statement

Copyright 2012 PowerShell.com. All rights reserved.