Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>cpp-code-templateNew to Visual Studio Code? Get it now.
cpp-code-template

cpp-code-template

dreamy-xay

|
680 installs
| (0) | Free
Custom key-value one-click ctrl+space generation code template.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

README

cpp-code-template

ctrl + space key to generate custom code templates with one click.

command

"cpptemplate": "code.template.key"

configuration keyle

dreamy.code.template: array

  • Array element attributes
property function
linekey The corresponding key value is the template that is generated when the ctrl + space key is pressed.
template Your corresponding key value code template.

example

  "dreamy.code.template": [
    {
      "linekey": "cpp1",
      "template": "#include <iostream>\n\nint main() {\n\treturn 0;\n}"
    },
    {
      "linekey": "cpp2",
      "template": "#include <iostream>\n\nint main() {\n\tsystem(\"pause\");\n\treturn 0;\n}"
    }
  ],
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft