Skip to content

Instantly share code, notes, and snippets.

@leonid-ed
Last active November 18, 2015 12:12
Show Gist options
  • Save leonid-ed/73d23570f684ccc2704c to your computer and use it in GitHub Desktop.
Save leonid-ed/73d23570f684ccc2704c to your computer and use it in GitHub Desktop.
Sublime Text 2/3 snippet, what puts wrapper code for DEBUG preprocessor directive
<snippet>
<content><![CDATA[
#ifdef DEBUG
#endif // DEBUG
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ifdebug</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.c++, source.c</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment