Skip to content

Commit af1b781

Browse files
committed
feat: custom snippet adding example docs
1 parent a30c9a3 commit af1b781

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

docs/07-Features/02-custom-snippets.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,12 @@ The **Add Snippet** panel contains four input fields, each with placeholder exam
4848
| **File Extension** *optional* | Specifies which file types the snippet should be active in. For example, `.js, .ts` will make the snippet available in JavaScript and TypeScript files. <br />⚠️ Use file **extensions**, not file or language names, and separate multiple entries with commas. <br /> When left blank, the snippet works for **all** file types. |
4949
| **Template Text** *required* | The actual code or content your snippet expands into. For example, typing `clg` could expand to `console.log();`. |
5050

51+
#### Example Snippet
52+
The image below shows a complete snippet configuration:
53+
54+
![Snippet Example](./images/CustomSnippets/custom-snippet-example.png "Snippet Example")
55+
After entering the values, click `Save`.
56+
> Your snippet will be added to the list and can be used immediately in **Phoenix Code**.
57+
58+
![Snippets Count](./images/CustomSnippets/custom-snippets-count.png "Snippets Count")
59+
In the panel header, you can see the total number of snippets you’ve added. You can create as many snippets as you like.
30 KB
Loading
35.1 KB
Loading

0 commit comments

Comments
 (0)