+snippets

This commit is contained in:
oreodave
2019-11-25 14:23:50 +00:00
parent e3034c639b
commit 0ffa96870f
11 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: class ... { ... }
# key: class
# --
${1:public} class ${2:Name}
{
$0
}

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Foreach loop
# key: foreach
# condition: t
# --
foreach (${1:var} ${2:i} in ${3:collection})
{
$0
}

View File

@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: public void Method { ... }
# key: method
# --
${1:public} ${2:void} ${3:Method}(${4:int x})
{
${0:return x;}
}

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: /// <param>...</param>
# key: comment
# --
/// <param name="$1">$0</param>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: /// <returns>...</returns>
# key: comment
# --
/// <returns>$0</returns>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: author
# key: <au
# --
#+AUTHOR: $1

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: date
# key: <da
# --
#+DATE: ${1:Year}:${2:month}:${3:day}

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: description
# key: desc
# --
#+DESCRIPTION: ${1:description of your org-mode file}

View File

@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: img
# key: img_
# --
<img src="$1"
alt="$2" align="${3:left}"
title="${4:image title}"
class="img"
</img>
$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: include
# key: <i
# --
#+INCLUDE: $1

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Title
# key: <ti
# --
#+TITLE: ${1:What the hell}