diff options
author | oreodave <aryadevchavali1@gmail.com> | 2019-11-25 14:23:50 +0000 |
---|---|---|
committer | oreodave <aryadevchavali1@gmail.com> | 2019-11-25 14:23:50 +0000 |
commit | 0ffa96870f7bfe594807adf92430c11a71f1c3fb (patch) | |
tree | f32f28526a71b959dabf80920418a7310e9a85dd /doom.d/snippets/csharp-mode | |
parent | e3034c639b1c8819cf6476d1efdb8932270970dc (diff) | |
download | dotfiles-0ffa96870f7bfe594807adf92430c11a71f1c3fb.tar.gz dotfiles-0ffa96870f7bfe594807adf92430c11a71f1c3fb.tar.bz2 dotfiles-0ffa96870f7bfe594807adf92430c11a71f1c3fb.zip |
+snippets
Diffstat (limited to 'doom.d/snippets/csharp-mode')
-rw-r--r-- | doom.d/snippets/csharp-mode/class ... { ... } | 9 | ||||
-rw-r--r-- | doom.d/snippets/csharp-mode/foreach | 9 | ||||
-rw-r--r-- | doom.d/snippets/csharp-mode/method | 8 | ||||
-rw-r--r-- | doom.d/snippets/csharp-mode/params | 6 | ||||
-rw-r--r-- | doom.d/snippets/csharp-mode/returns | 5 |
5 files changed, 37 insertions, 0 deletions
diff --git a/doom.d/snippets/csharp-mode/class ... { ... } b/doom.d/snippets/csharp-mode/class ... { ... } new file mode 100644 index 0000000..5e96938 --- /dev/null +++ b/doom.d/snippets/csharp-mode/class ... { ... } @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: class ... { ... } +# key: class +# -- + +${1:public} class ${2:Name} +{ + $0 +} diff --git a/doom.d/snippets/csharp-mode/foreach b/doom.d/snippets/csharp-mode/foreach new file mode 100644 index 0000000..220fcd9 --- /dev/null +++ b/doom.d/snippets/csharp-mode/foreach @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Foreach loop +# key: foreach +# condition: t +# -- +foreach (${1:var} ${2:i} in ${3:collection}) +{ + $0 +} diff --git a/doom.d/snippets/csharp-mode/method b/doom.d/snippets/csharp-mode/method new file mode 100644 index 0000000..a2aaf6b --- /dev/null +++ b/doom.d/snippets/csharp-mode/method @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: public void Method { ... } +# key: method +# -- +${1:public} ${2:void} ${3:Method}(${4:int x}) +{ + ${0:return x;} +} diff --git a/doom.d/snippets/csharp-mode/params b/doom.d/snippets/csharp-mode/params new file mode 100644 index 0000000..b781710 --- /dev/null +++ b/doom.d/snippets/csharp-mode/params @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: /// <param>...</param> +# key: comment +# -- + +/// <param name="$1">$0</param>
\ No newline at end of file diff --git a/doom.d/snippets/csharp-mode/returns b/doom.d/snippets/csharp-mode/returns new file mode 100644 index 0000000..dee5e8d --- /dev/null +++ b/doom.d/snippets/csharp-mode/returns @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: /// <returns>...</returns> +# key: comment +# -- +/// <returns>$0</returns>
\ No newline at end of file |