Skip to content

Commit 1300fcf

Browse files
committed
feat: add faq section for custom snippets
1 parent cc5ac1e commit 1300fcf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,18 @@ Once you reach the final cursor position, pressing `Tab` again will **remove any
133133
<VideoPlayer
134134
src="https://docs-images.phcode.dev/videos/custom-snippets/cursor-snippets.mp4"
135135
/>
136+
137+
---
138+
139+
## FAQ
140+
141+
#### Q. Is there a maximum limit on the length of the abbreviation?
142+
Yes. **Phoenix Code** sets some limits for certain fields. The **Abbreviation** can have a maximum of 30 characters, and the **Description** can have up to 80 characters. There’s no restriction on the length of the **Template Text** or **File Extension**.
143+
144+
#### Q. What happens if there are two snippets with the same abbreviation?
145+
**Phoenix Code** does not allow adding two snippets with the same abbreviation.
146+
However, abbreviations are *case-sensitive*, so variations like `log` and `LOG` are treated as different snippets.
147+
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*.
150+
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

Comments
 (0)