Skip to content

Commit 15c1e84

Browse files
committed
fix
1 parent 36c38ed commit 15c1e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Content/Chapter-11-tricks-and-hacks/code-snippets/code-snippets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ code is generated in the body of our program, in the place of the short code. Th
1212

1313
## Creating Your Own Code Snippet
1414

15-
In this section we are going to show you how to **make your own code snippet**. We will see **how to make a code snippet** for `Console.ReadLine()`. In order to begin we must create a new empty project and go to \[**Tools -> Code Snippets Manager**\], as shown on the picture:
15+
In this section we are going to show you how to **make your own code snippet**. We will see **how to make a code snippet** for `Console.ReadLine()`. In order to begin we must create a new empty project in Visual Studio and go to \[**Tools -> Code Snippets Manager**\], as shown on the picture:
1616

1717
![](/assets/chapter-11-images/01.Code-snippet-02.jpg)
1818

@@ -30,7 +30,7 @@ We see many things we haven't seen yet, but don't worry, we will become acquaint
3030

3131
## Changing an Existing Snippet
3232

33-
Now we have to focus on the part `<Title><Title>`, `<Shortcut><Shortcut>` and the code between `CDATA[]`. Firstly, we will change the title in `<Title><Title>` and in the place of `cw`we will write `cr`, as this will be **the title of our snippet**. After that, in the section `<Shortcut><Shortcut>`, we will change what we have to write to **call our snippet** \(the shortcut\) from `cw` to `cr`. Finally, we need to change the code in `CDATA[]`, from `WriteLine` to `ReadLine`: `CDATA[$SystemConsole$.ReadLine($end$);]`. If you wish, you can change the sections [Description] and [Author]. The changed file should look like this:
33+
Now we have to focus on the part `<Title></Title>`, `<Shortcut></Shortcut>` and the code between `CDATA[]`. Firstly, we will change the title in `<Title></Title>` and in the place of `cw`we will write `cr`, as this will be **the title of our snippet**. After that, in the section `<Shortcut></Shortcut>`, we will change what we have to write to **call our snippet** \(the shortcut\) from `cw` to `cr`. Finally, we need to change the code in `CDATA[]`, from `WriteLine` to `ReadLine`: `CDATA[$SystemConsole$.ReadLine($end$);]`. If you wish, you can change the sections [Description] and [Author]. The changed file should look like this:
3434

3535
![](/assets/chapter-11-images/01.Code-snippet-05.jpg)
3636

0 commit comments

Comments
 (0)