You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/08-Features/02-custom-snippets.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ You can also specify which file types each snippet should work with, so they app
13
13
14
14
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.
15
15
16
-
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.
16
+
The snippets you define are available globally, so you don’t need to recreate them for every folder.
17
17
18
18
> **Note**: Custom Snippets have the highest priority and will appear above all other code hints.
19
19
@@ -95,12 +95,11 @@ This will immediately delete the snippet.
95
95
96
96
### Filter Snippets
97
97
When you have a large collection of snippets, the **Filter** feature helps you quickly narrow down the list.
98
-
You’ll find it on the right side of the snippets panel header.
98
+
You’ll find it on the top-right side of the snippets panel.
@@ -110,7 +109,7 @@ It can filter your results quickly and accurately.
110
109
111
110
### Snippet Cursor Position
112
111
113
-
**Phoenix Code**snippets feature is very powerful. It also allows you to define **cursor positions** within a snippet to make editing even faster.
112
+
**Phoenix Code**custom snippets also allows you to define **cursor positions** within a snippet to make editing even faster.
114
113
By adding numbered cursor placeholders, you can jump between key points in the expanded snippet using the `Tab` key.
115
114
116
115
#### How It Works
@@ -145,6 +144,6 @@ Yes. **Phoenix Code** sets some limits for certain fields. The **Abbreviation**
145
144
**Phoenix Code** does not allow adding two snippets with the same abbreviation.
146
145
However, abbreviations are *case-sensitive*, so variations like `log` and `LOG` are treated as different snippets.
147
146
148
-
#### Q. Do I need to type the full abbreviation for the code hint to appear?
149
-
Yes. The code hint appears only when you type the *complete abbreviation*.
147
+
#### Q. Do I need to type the full abbreviation for the snippet hint to appear?
148
+
Yes. The snippet hint appears only when you type the *complete abbreviation*.
150
149
This is an intentional UX decision, since custom snippets have the highest priority, showing hints for partial abbreviations could clutter suggestions and hide default hints.
0 commit comments