Explorer -> RMB on folder -> Generate files for C++ class
Found a bug? Create issue on github
Contributions are welcome
{userName} - cpp-class-generator.user.name or system username
{date} - current date
{copyright} - cpp-class-generator.project.copyright
{namespaceStart} - namespace start is namespace NamespaceName {
{namespaceEnd} - namespace end is } // NamespaceName
{namespaceTab} - automatic namespace content tabulation. If there is no namespace, no tab will be added
{namespaceScope} - inline namespace scope is NamespaceName::
{className} - specified class name
{headerFileName} - specified name with header extension
"cpp-class-generator.templates": [
{
"name": "Header-only class",
"header": [
"{copyright}",
"",
"#pragma once",
"",
"{namespaceStart}",
"{namespaceTab}class {className} {",
"{namespaceTab}};",
"{namespaceEnd}"
]
},
{
"name": "Separated source/header class",
"header": "Header-only class", // Reference to header in other template
"source": [
"{copyright}",
"",
"#include \"{headerFileName}\"",
""
]
}
]
Configs from global and local settings will be merged - you can add main classes in global settings and project-specific classes in workspace settings, without duplicates.
-
cpp-class-generator.templates.default-file-scheme config parameter
-
"Default" option in generated files scheme pick
-
Refactored code
-
Template parameters are now arrays of strings
-
Icon display