Add hello world, better for loop snippet
This commit is contained in:
parent
e2836f519f
commit
325f41372a
|
@ -1,10 +1,16 @@
|
||||||
snippet hello "Hello World"
|
extends cpp
|
||||||
Hallo
|
|
||||||
|
priority 200
|
||||||
|
|
||||||
|
snippet helloworld "Hello World"
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(void){(void)printf("Hello World!\n");return 0;}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet for "For-loop head"
|
snippet for "For-loop head"
|
||||||
for (${1:int i} = ${2:0}; ${3:i}; ${4:--i}) {
|
for (${1:int ${2:i}} = ${3:0}; ${4:$2 < $5}; ${6:$2++}) {
|
||||||
$5
|
$7
|
||||||
}
|
}
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
Loading…
Reference in New Issue