Skip to content

Commit 6d2ff56

Browse files
author
Bruno Moura
committed
Merge branch 'release/0.1.0'
2 parents 160f235 + 3294115 commit 6d2ff56

File tree

10 files changed

+338
-0
lines changed

10 files changed

+338
-0
lines changed

Readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Code Snippet C#
2+
3+
## C# snippet code set to add to Visual Studio.
4+
Shortcuts for building codes quickly, without having to enter the same standard codes all the time.
5+
6+
__Code Snippets to:__
7+
8+
- [x] Methods => in development...

snippets/1.snippet

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_m</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method with type to define.</Description>
8+
<Shortcut>_m</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public $type$ $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>type</ID>
19+
<ToolTip>Enter method type.</ToolTip>
20+
<Default>void</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>Name</ID>
24+
<ToolTip>Enter the name of the method.</ToolTip>
25+
<Default>Method</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>content</ID>
29+
<ToolTip>Content of the method.</ToolTip>
30+
<Default>throw new NotImplementedException();</Default>
31+
</Literal>
32+
<Literal>
33+
<ID>params</ID>
34+
<ToolTip>Method parameters.</ToolTip>
35+
<Default></Default>
36+
</Literal>
37+
</Declarations>
38+
</Snippet>
39+
</CodeSnippet>
40+
</CodeSnippets>

snippets/2.snippet

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_mp</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create private method with type to define.</Description>
8+
<Shortcut>_mp</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[private $type$ $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>type</ID>
19+
<ToolTip>Enter method type.</ToolTip>
20+
<Default>void</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>Name</ID>
24+
<ToolTip>Enter the name of the method.</ToolTip>
25+
<Default>Method</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>content</ID>
29+
<ToolTip>Content of the method.</ToolTip>
30+
<Default>throw new NotImplementedException();</Default>
31+
</Literal>
32+
<Literal>
33+
<ID>params</ID>
34+
<ToolTip>Method parameters.</ToolTip>
35+
<Default></Default>
36+
</Literal>
37+
</Declarations>
38+
</Snippet>
39+
</CodeSnippet>
40+
</CodeSnippets>

snippets/3.snippet

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_mprot</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create protected method with type to define.</Description>
8+
<Shortcut>_mprot</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[protected $type$ $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>type</ID>
19+
<ToolTip>Enter method type.</ToolTip>
20+
<Default>void</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>Name</ID>
24+
<ToolTip>Enter the name of the method.</ToolTip>
25+
<Default>Method</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>content</ID>
29+
<ToolTip>Content of the method.</ToolTip>
30+
<Default>throw new NotImplementedException();</Default>
31+
</Literal>
32+
<Literal>
33+
<ID>params</ID>
34+
<ToolTip>Method parameters.</ToolTip>
35+
<Default></Default>
36+
</Literal>
37+
</Declarations>
38+
</Snippet>
39+
</CodeSnippet>
40+
</CodeSnippets>

snippets/4.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_mdouble</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method double named</Description>
8+
<Shortcut>_mdouble</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public double $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>Name</ID>
19+
<ToolTip>Enter the name of the method.</ToolTip>
20+
<Default>Method</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>content</ID>
24+
<ToolTip>Content of the method.</ToolTip>
25+
<Default>throw new NotImplementedException();</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>params</ID>
29+
<ToolTip>Method parameters.</ToolTip>
30+
<Default></Default>
31+
</Literal>
32+
</Declarations>
33+
</Snippet>
34+
</CodeSnippet>
35+
</CodeSnippets>

snippets/5.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_mdecimal</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method decimal named</Description>
8+
<Shortcut>_mdecimal</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public double $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>Name</ID>
19+
<ToolTip>Enter the name of the method.</ToolTip>
20+
<Default>Method</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>content</ID>
24+
<ToolTip>Content of the method.</ToolTip>
25+
<Default>throw new NotImplementedException();</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>params</ID>
29+
<ToolTip>Method parameters.</ToolTip>
30+
<Default></Default>
31+
</Literal>
32+
</Declarations>
33+
</Snippet>
34+
</CodeSnippet>
35+
</CodeSnippets>

snippets/6.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_mi</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method int named</Description>
8+
<Shortcut>_mi</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public int $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>Name</ID>
19+
<ToolTip>Enter the name of the method.</ToolTip>
20+
<Default>Method</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>content</ID>
24+
<ToolTip>Content of the method.</ToolTip>
25+
<Default>throw new NotImplementedException();</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>params</ID>
29+
<ToolTip>Method parameters.</ToolTip>
30+
<Default></Default>
31+
</Literal>
32+
</Declarations>
33+
</Snippet>
34+
</CodeSnippet>
35+
</CodeSnippets>

snippets/7.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_mstr</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method string named</Description>
8+
<Shortcut>_mstr</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public string $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>Name</ID>
19+
<ToolTip>Enter the name of the method.</ToolTip>
20+
<Default>Method</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>content</ID>
24+
<ToolTip>Content of the method.</ToolTip>
25+
<Default>throw new NotImplementedException();</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>params</ID>
29+
<ToolTip>Method parameters.</ToolTip>
30+
<Default></Default>
31+
</Literal>
32+
</Declarations>
33+
</Snippet>
34+
</CodeSnippet>
35+
</CodeSnippets>

snippets/8.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_mv</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method void named</Description>
8+
<Shortcut>_mv</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public void $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>Name</ID>
19+
<ToolTip>Enter the name of the method.</ToolTip>
20+
<Default>Method</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>content</ID>
24+
<ToolTip>Content of the method.</ToolTip>
25+
<Default>throw new NotImplementedException();</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>params</ID>
29+
<ToolTip>Method parameters.</ToolTip>
30+
<Default></Default>
31+
</Literal>
32+
</Declarations>
33+
</Snippet>
34+
</CodeSnippet>
35+
</CodeSnippets>

snippets/9.snippet

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3+
<CodeSnippet Format="1.0.0">
4+
<Header>
5+
<Title>_mb</Title>
6+
<Author>brunomoura.dev</Author>
7+
<Description>Create public method void named</Description>
8+
<Shortcut>_mb</Shortcut>
9+
</Header>
10+
<Snippet>
11+
<Code Language="CSharp">
12+
<![CDATA[public bool $Name$($params$) {
13+
$content$
14+
}]]>
15+
</Code>
16+
<Declarations>
17+
<Literal>
18+
<ID>Name</ID>
19+
<ToolTip>Enter the name of the method.</ToolTip>
20+
<Default>Method</Default>
21+
</Literal>
22+
<Literal>
23+
<ID>content</ID>
24+
<ToolTip>Content of the method.</ToolTip>
25+
<Default>throw new NotImplementedException();</Default>
26+
</Literal>
27+
<Literal>
28+
<ID>params</ID>
29+
<ToolTip>Method parameters.</ToolTip>
30+
<Default></Default>
31+
</Literal>
32+
</Declarations>
33+
</Snippet>
34+
</CodeSnippet>
35+
</CodeSnippets>

0 commit comments

Comments
 (0)