Install yasnippet and vala-snippets packages
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: do while loop
|
||||
# key: do
|
||||
# --
|
||||
do {
|
||||
$0
|
||||
} while (${1:condition});
|
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: for loop
|
||||
# key: for
|
||||
# --
|
||||
for (int ${1:i} = 0; $1 < $2; $1++) {
|
||||
$0
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: for each loop
|
||||
# key: foreach
|
||||
# --
|
||||
foreach (${1:int} ${2:i} in ${3:list}) {
|
||||
$0
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: if-else if-else statement
|
||||
# key: ifee
|
||||
# --
|
||||
if (${1:condition}) {
|
||||
$2
|
||||
} else if (${3:condition}){
|
||||
$4
|
||||
} else {
|
||||
$0
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: if else statement
|
||||
# key: ife
|
||||
# --
|
||||
if (${1:condition}) {
|
||||
$2
|
||||
} else {
|
||||
$0
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: if statement
|
||||
# key: if
|
||||
# --
|
||||
if (${1:condition}) {
|
||||
$0
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: switch statement
|
||||
# key: switch
|
||||
# --
|
||||
switch (${1:condition}) {
|
||||
case $2:
|
||||
$0
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: while statement
|
||||
# key: while
|
||||
# --
|
||||
while (${1:condition}) {
|
||||
$0
|
||||
}
|
Reference in New Issue
Block a user