Skip to content

Commit d786cb8

Browse files
author
riteme
committed
Big changes
1 parent ad93088 commit d786cb8

File tree

84 files changed

+332
-358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+332
-358
lines changed

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,16 @@ CppSnippetForSublime included all the snippets of C++ keywords,
44
in order to improve Sublime Text's autocompletion.
55

66
# Install
7-
If you're using Linux, then you can simply run `sh setup-linux.sh` to install.
8-
9-
For all platform:
10-
11-
1. Get to the Package folder of Sublime Text:
7+
First of all, get to the sublime packages's floder:
128

139
```shell
14-
cd /[path to Sublime Text]/Packages
10+
cd [path to sublime's config]/Packages/
1511
```
1612
17-
2. Clone the repository:
13+
Then clone the repo.
1814
1915
```shell
20-
git clone https://github.com/Riteme/CppSnippetForSublime.git
16+
git clone https://github.com/riteme/CppSnippetForSublime.git
2117
```
2218
23-
3. Enjoy it!
24-
25-
# Feedback
26-
If you have any suggections, you can e-mail me or open an issue.
27-
28-
I'm glad to receive your suggections!
19+
That's all!

setup-linux.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

snippets/#define.sublime-snippet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<snippet>
2-
<content><![CDATA[
3-
#define ${1:MARCO} ${2:VALUE}
2+
<content><![CDATA[
3+
define ${1:MARCO} ${2:VALUE}
44
]]></content>
5-
<tabTrigger>define</tabTrigger>
6-
<scope>source.c++</scope>
5+
<tabTrigger>define</tabTrigger>
6+
<scope>source.c++</scope>
77
</snippet>

snippets/#elif.sublime-snippet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<snippet>
2-
<content><![CDATA[
3-
#elif ${1:CONDITION}
2+
<content><![CDATA[
3+
elif ${1:CONDITION}
44
]]></content>
5-
<tabTrigger>elif</tabTrigger>
6-
<scope>source.c++</scope>
5+
<tabTrigger>elif</tabTrigger>
6+
<scope>source.c++</scope>
77
</snippet>

snippets/#else.sublime-snippet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<snippet>
2-
<content><![CDATA[
3-
#else
2+
<content><![CDATA[
3+
else
44
]]></content>
5-
<tabTrigger>else</tabTrigger>
6-
<scope>source.c++</scope>
5+
<tabTrigger>else</tabTrigger>
6+
<scope>source.c++</scope>
77
</snippet>

snippets/#endif.sublime-snippet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<snippet>
2-
<content><![CDATA[
3-
#endif
2+
<content><![CDATA[
3+
endif
44
]]></content>
5-
<tabTrigger>endif</tabTrigger>
6-
<scope>source.c++</scope>
5+
<tabTrigger>endif</tabTrigger>
6+
<scope>source.c++</scope>
77
</snippet>

snippets/#error.sublime-snippet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<snippet>
2-
<content><![CDATA[
3-
#error ${1:MESSAGE}
2+
<content><![CDATA[
3+
error ${1:MESSAGE}
44
]]></content>
5-
<tabTrigger>error</tabTrigger>
6-
<scope>source.c++</scope>
5+
<tabTrigger>error</tabTrigger>
6+
<scope>source.c++</scope>
77
</snippet>

snippets/#if.sublime-snippet

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<snippet>
2-
<content><![CDATA[
3-
#if ${1:CONDITION}
4-
${2:/*your code*/}
2+
<content><![CDATA[
3+
if ${1:CONDITION}
4+
${2:/*your code*/}
55
#endif
66
]]></content>
7-
<tabTrigger>if</tabTrigger>
8-
<scope>source.c++</scope>
7+
<tabTrigger>if</tabTrigger>
8+
<scope>source.c++</scope>
99
</snippet>

snippets/#ifdef.sublime-snippet

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<snippet>
2-
<content><![CDATA[
3-
#ifdef ${1:MARCO}
4-
${2:/*your code*/}
2+
<content><![CDATA[
3+
ifdef ${1:MARCO}
4+
${2:/*your code*/}
55
#endif // ${1:MARCO}
66
]]></content>
7-
<tabTrigger>ifdef</tabTrigger>
8-
<scope>source.c++</scope>
7+
<tabTrigger>ifdef</tabTrigger>
8+
<scope>source.c++</scope>
99
</snippet>

snippets/#ifndef.sublime-snippet

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<snippet>
2-
<content><![CDATA[
3-
#ifndef ${1:MARCO}
4-
${2:/*your code*/}
2+
<content><![CDATA[
3+
ifndef ${1:MARCO}
4+
${2:/*your code*/}
55
#endif // ${1:MARCO}
66
]]></content>
7-
<tabTrigger>ifndef</tabTrigger>
8-
<scope>source.c++</scope>
7+
<tabTrigger>ifndef</tabTrigger>
8+
<scope>source.c++</scope>
99
</snippet>

0 commit comments

Comments
 (0)