This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

View File

@@ -0,0 +1 @@
cc-mode

View 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;

View 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;
}
}

View 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;
}
}

View 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
}

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: /// <summary> ... </summary>
# key: comment
# --
/// <summary>
/// $1
/// </summary>

View 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>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: /// <returns>$1</returns>
# key: comment
# --

View 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>

View 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
}

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: main
# key: main
# --
static void Main(string[] args)
{
$0
}

View 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
}

View 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
View 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;
}
}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: Console.Read(...);
# key: cr
# --
Console.Read(${1:Read});

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: Console.ReadLine(...);
# key: crl
# --
Console.ReadLine(${1:Read});

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: #region ... #endregion
# key: region
# --
#region $1
$0
#endregion

View 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());}
}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: using ...;
# key: using
# --
using $1;

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: using System;
# key: using
# --
using System;

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: using System....;
# key: using
# --
using System.$1;

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: Console.Write(...);
# key: cw
# --
Console.Write(${1:Write});

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor : Frede Brændstrup <frederikbraendstrup@gmail.com>
# name: Console.WriteLine(...);
# key: cwl
# --
Console.WriteLine(${1:Write});