We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0a3184 commit 97ec814Copy full SHA for 97ec814
snippets/cmake.snippets
@@ -1,3 +1,44 @@
1
+snippet if "if"
2
+ if($1)
3
+ $2
4
+ endif()
5
+
6
+snippet ife "if / else"
7
8
9
+ else()
10
+ $3
11
12
13
+snippet ifee "if / elseif / else"
14
15
16
+ elseif($3)
17
+ $4
18
19
+ $5
20
21
22
+snippet for "foreach"
23
+ foreach($1 ${$2})
24
25
+ endforeach()
26
27
+snippet while "while"
28
+ while($1)
29
30
+ endwhile()
31
32
+snippet macro "macro"
33
+ macro($1)
34
35
+ endmacro()
36
37
+snippet function "function"
38
+ function($1)
39
40
+ endfunction()
41
42
snippet init
43
cmake_minimum_required(VERSION ${1:2.8.2})
44
project(${2:ProjectName})
0 commit comments