Skip to content

Instantly share code, notes, and snippets.

@kube
Created January 15, 2015 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kube/134200fd5cfbf160bd7a to your computer and use it in GitHub Desktop.
Save kube/134200fd5cfbf160bd7a to your computer and use it in GitHub Desktop.
Class Header : Sublime Snippet
<snippet>
<content><![CDATA[
#ifndef ${1:CLASS}_HPP
#define ${1:CLASS}_HPP
class ${2:ClassName} {
public:
${2:ClassName}();
${2:ClassName}(const ${2:ClassName}& ${3:instance});
~${2:ClassName}();
${2:ClassName}& operator=(const ${2:ClassName}& ${3:instance});
private:
${4:}
};
#endif
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>classHeader</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.c++</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment