Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions snippets/cpp.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,9 @@
"main": {
"prefix": "main",
"body": [
"int main(int argc, const char** argv) {",
" return 0;",
"int main(int argc, const char** argv)",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is rather a preference change and not a "fix"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I just got notified after 4 years of PR? 😄

As for this change, you can see in all other snippets, { is placed on a new line, so should this one. return 0; is optional so I placed a placeholder for actual logic. You can tab complete and type it yourself, or type whatever logic. This project should be long dead anyways.

"{",
"$0",
"}"
],
"description": "Code snippet for main function"
Expand Down