Skip to content

Instantly share code, notes, and snippets.

@hachibeeDI
Last active December 10, 2015 00:19
Show Gist options
  • Save hachibeeDI/4350303 to your computer and use it in GitHub Desktop.
Save hachibeeDI/4350303 to your computer and use it in GitHub Desktop.
snippet file for neosnippets is plugin of Vim
snippet '''
abbr '''<summary>
''' <summary>${1:#:summary}</summary>
''' <returns>${2:#:returns}</returns>
''' <remarks>${3:#:remarks} </remarks>
''' <history>${4:Created at: `strftime("%Y-%b-%d")`}</history>
${5:#:TARGET}
snippet namespace
abbr NameSpace : : End NameSpace
alias name namesp nmsp
options head
NameSpace ${1:#:name}
${2:#:TARGET}
End NameSpace
snippet class
abbr Public Class
alias cls
options head
Public Class ${1:#:name}
Public Sub New(${2:#:var})
${3:#:targ}
End Sub
${4:#:TARGET}
End Class
snippet extmethod
abbr Extension Method
options head
Imports System.Runtime.CompilerServices
Module ${1:#:name}
<Extension()> _
Public Function ${2:#:name}(this As ${3:#:type}) As ${4:#:return_type}
${5:#:TARGET}
End Sub
End Module
snippet prisub
abbr Private Sub name()
options head
Private Sub ${1:#:name}(${2:#:var})
${2:#:TARGET}
End Sub
snippet pubsub
abbr Public Sub name()
options head
Public Sub ${1:#:name}(${2:#:var})
${3:#:TARGET}
End Sub
snippet prifunc
abbr Private Function name() As Hoge
options head
Private Function ${1:#:name}(${2:#:var}) As ${3:#:type}
${4:#:TARGET}
End Function
snippet pubfunc
abbr Private Function name() As Hoge
options head
Public Function ${1:#:name}(${2:#:var}) As ${3:#:type}
${4:#:TARGET}
End Function
snippet dim
abbr Dim x As Hoge
options head
Dim ${1:#:name} As ${2:#:type}
snippet dimn
abbr Dim x As New Hoge
options head
Dim ${1:#:name} As New ${2:#:type}
snippet (of
abbr Type(Of hoge)
${1:#:type}(Of ${2:#:type})
snippet If
abbr If expr Then
options head
If ${1:#:expr} Then
${2:#:TARGET}
snippet lams
abbr Sub(var) expr
options word
Sub(${1:#:vars}) ${2:#:TARGET}
snippet lams+
abbr Sub(var) : : End Sub
options word
Sub(${1:#:vars})
${2:#:TARGET}
End Sub
snippet lamf
abbr Function(var) expr
options word
Function(${1:#:vars}) ${2:#:TARGET}
snippet lamf+
abbr Function(var) : : End Function
options word
Function(${1:#:vars})
${2:#:TARGET}
End Function
snippet sel
abbr .Select(Function(var) expr
_
.Select(Function(${1:#:var}) ${2:#:expr})${3:#:TARGET}
snippet whe
abbr .Where(Function(var) expr
_
.Where(Function(${1:#:var}) ${2:#:expr})${3:#:TARGET}
snippet for
abbr .Foreach(Sub(var) expr
_
.Foreach(Sub(${1:#:var}) ${2:#:expr} )
${3:#:TARGET}
snippet selq
abbr .select(Function(var) expr
_
.Select(Function(${1:#:var})
${2:#:TARGET}
End Function)
snippet wheq
abbr .Where(Function(var) expr
_
.Where(Function(${1:#:var})
${2:#:TARGET}
End Function)
snippet forq
abbr .Foreach(Sub(var) expr
_
.Foreach(Sub(${1:#:var})
${2:#:TARGET}
End Sub)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment