Skip to content

Commit cc5ac1e

Browse files
committed
feat: add missing details for custom snippets
1 parent c4e7480 commit cc5ac1e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@ title: Custom Snippets
55
import React from 'react';
66
import VideoPlayer from '@site/src/components/Video/player';
77

8-
**Custom Snippets** let you create your own reusable code hints. You can define short abbreviations that expand into full code snippets when selected from the suggestions that appear as you type.
8+
**Custom Snippets** let you create your own reusable code hints. You can define short abbreviations that expand into full code snippets when selected from the code hints that appear as you type. In the code hint, **Phoenix Code** displays a small `Snippet` label on the right, indicating that the hint comes from custom snippets.
9+
10+
![Custom Snippets Icon](./images/CustomSnippets/custom-snippet-icon.png "Custom Snippets icon")
911

1012
You can also specify which file types each snippet should work with, so they appear only where they’re relevant.
1113

1214
Additionally, you can define the cursor position within a snippet. After expansion, **Phoenix Code** automatically places your cursor exactly where you want it, allowing you to start typing right away.
1315

1416
The snippets you define are available globally, so you don’t need to recreate them for every folder. This helps you write code faster and stay consistent across projects.
1517

18+
> **Note**: Custom Snippets have the highest priority and will appear above all other code hints.
19+
20+
<VideoPlayer
21+
src="https://docs-images.phcode.dev/videos/custom-snippets/custom-snippets-main.mp4"
22+
/>
23+
1624
---
1725

1826
### Custom Snippets Panel
38.1 KB
Loading

0 commit comments

Comments
 (0)