init
This commit is contained in:
1
snippets/csharp-mode/.yas-parents
Normal file
1
snippets/csharp-mode/.yas-parents
Normal file
@@ -0,0 +1 @@
|
||||
cc-mode
|
||||
9
snippets/csharp-mode/attrib
Normal file
9
snippets/csharp-mode/attrib
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: private attribute ....;
|
||||
# key: attrib
|
||||
# --
|
||||
/// <summary>
|
||||
/// $3
|
||||
/// </summary>
|
||||
private $1 $2;
|
||||
23
snippets/csharp-mode/attrib.1
Normal file
23
snippets/csharp-mode/attrib.1
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: private attribute ....; public property ... ... { ... }
|
||||
# key: attrib
|
||||
# --
|
||||
/// <summary>
|
||||
/// $3
|
||||
/// </summary>
|
||||
private $1 $2;
|
||||
|
||||
/// <summary>
|
||||
/// $4
|
||||
/// </summary>
|
||||
/// <value>$5</value>
|
||||
public $1 $2
|
||||
{
|
||||
get {
|
||||
return this.$2;
|
||||
}
|
||||
set {
|
||||
this.$2 = value;
|
||||
}
|
||||
}
|
||||
23
snippets/csharp-mode/attrib.2
Normal file
23
snippets/csharp-mode/attrib.2
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: private _attribute ....; public Property ... ... { ... }
|
||||
# key: attrib
|
||||
# --
|
||||
/// <summary>
|
||||
/// $3
|
||||
/// </summary>
|
||||
private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")};
|
||||
|
||||
/// <summary>
|
||||
/// ${3:Description}
|
||||
/// </summary>
|
||||
/// <value><c>$1</c></value>
|
||||
public ${1:Type} ${2:Name}
|
||||
{
|
||||
get {
|
||||
return this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")};
|
||||
}
|
||||
set {
|
||||
this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")} = value;
|
||||
}
|
||||
}
|
||||
23
snippets/csharp-mode/class
Normal file
23
snippets/csharp-mode/class
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: class ... { ... }
|
||||
# key: class
|
||||
# --
|
||||
${5:public} class ${1:Name}
|
||||
{
|
||||
#region Ctor & Destructor
|
||||
/// <summary>
|
||||
/// ${3:Standard Constructor}
|
||||
/// </summary>
|
||||
public $1($2)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ${4:Default Destructor}
|
||||
/// </summary>
|
||||
public ~$1()
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
8
snippets/csharp-mode/comment
Normal file
8
snippets/csharp-mode/comment
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: /// <summary> ... </summary>
|
||||
# key: comment
|
||||
# --
|
||||
/// <summary>
|
||||
/// $1
|
||||
/// </summary>
|
||||
6
snippets/csharp-mode/comment.1
Normal file
6
snippets/csharp-mode/comment.1
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: /// <param name="..."> ... </param>
|
||||
# key: comment
|
||||
# --
|
||||
/// <param name="$1">$2</param>
|
||||
5
snippets/csharp-mode/comment.2
Normal file
5
snippets/csharp-mode/comment.2
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: /// <returns>$1</returns>
|
||||
# key: comment
|
||||
# --
|
||||
6
snippets/csharp-mode/comment.3
Normal file
6
snippets/csharp-mode/comment.3
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: /// <exception cref="..."> ... </exception>
|
||||
# key: comment
|
||||
# --
|
||||
/// <exception cref="$1">$2</exception>
|
||||
9
snippets/csharp-mode/fore
Normal file
9
snippets/csharp-mode/fore
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Jostein Kjønigsen <jostein@kjonigsen.net>
|
||||
# name: foreach { ... }
|
||||
# key: fore
|
||||
# --
|
||||
foreach (${1:var} ${2:item} in ${3:list})
|
||||
{
|
||||
$0
|
||||
}
|
||||
8
snippets/csharp-mode/main
Normal file
8
snippets/csharp-mode/main
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: main
|
||||
# key: main
|
||||
# --
|
||||
static void Main(string[] args)
|
||||
{
|
||||
$0
|
||||
}
|
||||
12
snippets/csharp-mode/method
Normal file
12
snippets/csharp-mode/method
Normal file
@@ -0,0 +1,12 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: public void Method { ... }
|
||||
# key: method
|
||||
# --
|
||||
/// <summary>
|
||||
/// ${5:Description}
|
||||
/// </summary>${2:$(if (string= (upcase yas-text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" yas-text "</c></returns>"))}
|
||||
${1:public} ${2:void} ${3:MethodName}($4)
|
||||
{
|
||||
$0
|
||||
}
|
||||
9
snippets/csharp-mode/namespace
Normal file
9
snippets/csharp-mode/namespace
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: namespace .. { ... }
|
||||
# key: namespace
|
||||
# --
|
||||
namespace $1
|
||||
{
|
||||
$0
|
||||
}
|
||||
18
snippets/csharp-mode/prop
Normal file
18
snippets/csharp-mode/prop
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: property ... ... { ... }
|
||||
# key: prop
|
||||
# --
|
||||
/// <summary>
|
||||
/// $5
|
||||
/// </summary>
|
||||
/// <value>$6</value>
|
||||
$1 $2 $3
|
||||
{
|
||||
get {
|
||||
return this.$4;
|
||||
}
|
||||
set {
|
||||
this.$4 = value;
|
||||
}
|
||||
}
|
||||
6
snippets/csharp-mode/read
Normal file
6
snippets/csharp-mode/read
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
|
||||
# name: Console.Read(...);
|
||||
# key: cr
|
||||
# --
|
||||
Console.Read(${1:Read});
|
||||
6
snippets/csharp-mode/readline
Normal file
6
snippets/csharp-mode/readline
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
|
||||
# name: Console.ReadLine(...);
|
||||
# key: crl
|
||||
# --
|
||||
Console.ReadLine(${1:Read});
|
||||
8
snippets/csharp-mode/region
Normal file
8
snippets/csharp-mode/region
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: #region ... #endregion
|
||||
# key: region
|
||||
# --
|
||||
#region $1
|
||||
$0
|
||||
#endregion
|
||||
13
snippets/csharp-mode/trycatch
Normal file
13
snippets/csharp-mode/trycatch
Normal file
@@ -0,0 +1,13 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
|
||||
# name: try{...} catch (ex) {...}
|
||||
# key: tc
|
||||
# --
|
||||
try
|
||||
{
|
||||
$0
|
||||
}
|
||||
catch (${1:Exception} ex)
|
||||
{
|
||||
${2:Console.WriteLine(ex.ToString());}
|
||||
}
|
||||
6
snippets/csharp-mode/using
Normal file
6
snippets/csharp-mode/using
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: using ...;
|
||||
# key: using
|
||||
# --
|
||||
using $1;
|
||||
6
snippets/csharp-mode/using.1
Normal file
6
snippets/csharp-mode/using.1
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: using System;
|
||||
# key: using
|
||||
# --
|
||||
using System;
|
||||
6
snippets/csharp-mode/using.2
Normal file
6
snippets/csharp-mode/using.2
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: using System....;
|
||||
# key: using
|
||||
# --
|
||||
using System.$1;
|
||||
6
snippets/csharp-mode/write
Normal file
6
snippets/csharp-mode/write
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
|
||||
# name: Console.Write(...);
|
||||
# key: cw
|
||||
# --
|
||||
Console.Write(${1:Write});
|
||||
6
snippets/csharp-mode/writeline
Normal file
6
snippets/csharp-mode/writeline
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
|
||||
# name: Console.WriteLine(...);
|
||||
# key: cwl
|
||||
# --
|
||||
Console.WriteLine(${1:Write});
|
||||
Reference in New Issue
Block a user