Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I use the vim-skeleton plugin for this.
The plugin https://github.com/honza/vim-snippets has main templates for several languages, though without the #include in your example. They also place your cursor inside the function, rather than leaving a comment there.
I'm maintaining mu-template. There exist many more plugins on the subject -- I remember a non exhaustive list on vim.wikia, now "fandom". Other people prefer pure snippets solutions where they manually request the expansion of the skeleton they wish to use.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.