Skip to content

Commit 5f2c8c2

Browse files
add code snippet for printing to std::cout
This is basically taken from atom. The snippet requires <iostream> headers to be set (obv.).
1 parent 58b1296 commit 5f2c8c2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

snippets/cpp.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,5 +235,12 @@
235235
"};"
236236
],
237237
"description": "Code snippet for union"
238+
},
239+
"cout": {
240+
"prefix": "cout",
241+
"body": [
242+
"std::cout << \"${1:/* message */}\" << \"\\n\";"
243+
],
244+
"description": "Code snippet for printing to std::cout"
238245
}
239-
}
246+
}

0 commit comments

Comments
 (0)