Install yasnippet and vala-snippets packages
This commit is contained in:
@@ -0,0 +1 @@
|
||||
cc-mode
|
8
elpa/yasnippet-20160924.2001/snippets/csharp-mode/attrib
Normal file
8
elpa/yasnippet-20160924.2001/snippets/csharp-mode/attrib
Normal file
@@ -0,0 +1,8 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : private attribute ....;
|
||||
# key: attrib
|
||||
# --
|
||||
/// <summary>
|
||||
/// $3
|
||||
/// </summary>
|
||||
private $1 $2;
|
22
elpa/yasnippet-20160924.2001/snippets/csharp-mode/attrib.1
Normal file
22
elpa/yasnippet-20160924.2001/snippets/csharp-mode/attrib.1
Normal file
@@ -0,0 +1,22 @@
|
||||
#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;
|
||||
}
|
||||
}
|
22
elpa/yasnippet-20160924.2001/snippets/csharp-mode/attrib.2
Normal file
22
elpa/yasnippet-20160924.2001/snippets/csharp-mode/attrib.2
Normal file
@@ -0,0 +1,22 @@
|
||||
#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;
|
||||
}
|
||||
}
|
22
elpa/yasnippet-20160924.2001/snippets/csharp-mode/class
Normal file
22
elpa/yasnippet-20160924.2001/snippets/csharp-mode/class
Normal file
@@ -0,0 +1,22 @@
|
||||
#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
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : /// <summary> ... </summary>
|
||||
# key: comment
|
||||
# --
|
||||
/// <summary>
|
||||
/// $1
|
||||
/// </summary>
|
@@ -0,0 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : /// <param name="..."> ... </param>
|
||||
# key: comment
|
||||
# --
|
||||
/// <param name="$1">$2</param>
|
@@ -0,0 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : /// <param name="..."> ... </param>
|
||||
# key: comment
|
||||
# --
|
||||
/// <returns>$1</returns>
|
@@ -0,0 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : /// <exception cref="..."> ... </exception>
|
||||
# key: comment
|
||||
# --
|
||||
/// <exception cref="$1">$2</exception>
|
8
elpa/yasnippet-20160924.2001/snippets/csharp-mode/fore
Normal file
8
elpa/yasnippet-20160924.2001/snippets/csharp-mode/fore
Normal file
@@ -0,0 +1,8 @@
|
||||
#contributor : Jostein Kjønigsen <jostein@kjonigsen.net>
|
||||
#name : foreach { ... }
|
||||
# key: fore
|
||||
# --
|
||||
foreach (${1:var} ${2:item} in ${3:list})
|
||||
{
|
||||
$0
|
||||
}
|
11
elpa/yasnippet-20160924.2001/snippets/csharp-mode/method
Normal file
11
elpa/yasnippet-20160924.2001/snippets/csharp-mode/method
Normal file
@@ -0,0 +1,11 @@
|
||||
#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
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : namespace .. { ... }
|
||||
# key: namespace
|
||||
# --
|
||||
namespace $1
|
||||
{
|
||||
$0
|
||||
}
|
17
elpa/yasnippet-20160924.2001/snippets/csharp-mode/prop
Normal file
17
elpa/yasnippet-20160924.2001/snippets/csharp-mode/prop
Normal file
@@ -0,0 +1,17 @@
|
||||
#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;
|
||||
}
|
||||
}
|
7
elpa/yasnippet-20160924.2001/snippets/csharp-mode/region
Normal file
7
elpa/yasnippet-20160924.2001/snippets/csharp-mode/region
Normal file
@@ -0,0 +1,7 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : #region ... #endregion
|
||||
# key: region
|
||||
# --
|
||||
#region $1
|
||||
$0
|
||||
#endregion
|
5
elpa/yasnippet-20160924.2001/snippets/csharp-mode/using
Normal file
5
elpa/yasnippet-20160924.2001/snippets/csharp-mode/using
Normal file
@@ -0,0 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : using ...;
|
||||
# key: using
|
||||
# --
|
||||
using $1;
|
@@ -0,0 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : using System;
|
||||
# key: using
|
||||
# --
|
||||
using System;
|
@@ -0,0 +1,5 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : using System....;
|
||||
# key: using
|
||||
# --
|
||||
using System.$1;
|
Reference in New Issue
Block a user