mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
more cpp snippets
This commit is contained in:
parent
49482b8ea0
commit
e2efea79ba
@ -134,4 +134,26 @@ endsnippet
|
|||||||
|
|
||||||
snippet sol "solution" w
|
snippet sol "solution" w
|
||||||
auto solution = Solution();
|
auto solution = Solution();
|
||||||
|
$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet for "for loop" w
|
||||||
|
for ($1; $2; $3){
|
||||||
|
$4
|
||||||
|
}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet if "if condition" w
|
||||||
|
if ($1){
|
||||||
|
$2
|
||||||
|
}
|
||||||
|
$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet ifelse "if else condition"
|
||||||
|
if ($1){
|
||||||
|
$2
|
||||||
|
}else{
|
||||||
|
|
||||||
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user