Last active
December 12, 2015 08:29
-
-
Save Himanshu-Mishr/4744651 to your computer and use it in GitHub Desktop.
This is SUBLIME TEXT 2 snippet. It contain different types of "comment" snippet for c programming. Just PRESS "z" to get the snippet.It works for c codes.Keep these files in your Packages > User
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/** | |
* | |
* ${1:Block comment} | |
* | |
**/ | |
]]></content> | |
<tabTrigger>z-block</tabTrigger> | |
<scope>source.c</scope> | |
<description>Block style comment</description> | |
</snippet> | |
<!-- this sublime text 2 snippet for c codes --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/*****************************************${1/./*/g}* | |
* Title: $1 * | |
* Author: ${2:your name here} ${1/./ /g}* | |
* email: ${3:[email protected]} ${1/./ /g}* | |
*****************************************${1/./*/g}*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
$4 | |
int main() { | |
$5 | |
return 0; | |
} | |
]]></content> | |
<tabTrigger>z-header</tabTrigger> | |
<scope>source.c</scope> | |
<description>commenting header</description> | |
</snippet> | |
<!-- this sublime text 2 snippet for c codes --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/* ${1:Comment} */ | |
]]></content> | |
<tabTrigger>z-small</tabTrigger> | |
<scope>source.c</scope> | |
<description>single line</description> | |
</snippet> | |
<!-- this sublime text 2 snippet for c codes --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/** | |
TODO: | |
- ${1:Enter your todo item} | |
- ${2:Second todo item} | |
**/ | |
]]></content> | |
<tabTrigger>z-todo</tabTrigger> | |
<scope>source.c</scope> | |
<description>To-do list</description> | |
</snippet> | |
<!-- this sublime text 2 snippet for c codes --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/******************************${1/./*/g}* | |
************* WARNING!!! ****${1/./*/g}* | |
*******************************${1/./*/g}* | |
****** ${1} ********************** | |
******************************${1/./*/g}*/ | |
]]></content> | |
<tabTrigger>z-warning</tabTrigger> | |
<scope>source.c</scope> | |
<description>warning</description> | |
</snippet> | |
<!-- this sublime text 2 snippet for c codes --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment