-
-
Notifications
You must be signed in to change notification settings - Fork 148
Custom Snippets Feature #2278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Custom Snippets Feature #2278
Conversation
… boxes are focused
…nt is properly visible
…ype accepted values
67e1958
to
633e7cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a Custom Snippets feature to allow users to quickly expand short abbreviations into their corresponding code templates. Key changes include new CSS rules and Less imports to style custom snippet hints, new extension modules (such as snippetsState, snippetsList, snippetCodeHints, driver, and codeHintIntegration) for managing snippet state and editor integration, and a new UI panel for displaying and managing custom snippets.
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/styles/brackets_patterns_override.less | Adds new styles for custom snippet code hints and snippet description display |
src/styles/brackets.less | Imports the custom snippets stylesheet |
src/extensionsIntegrated/loader.js | Loads the new Custom Snippets extension |
src/extensionsIntegrated/CustomSnippets/*.js | Introduces several new modules to manage snippet state, list, code hints, and integration with the editor |
src/extensionsIntegrated/CustomSnippets/htmlContent/snippets-panel.html | Provides the new UI panel for custom snippets |
|
Tracking issue: #2268
This PR brings the support of Custom Snippets feature to Phoenix.
Custom snippets let users define short abbreviations. When typed in the editor, these trigger a hint. Selecting the hint expands it into the corresponding template text.
This helps reduce development time by avoiding repetitive typing.
Visual References
https://github.com/user-attachments/assets/a0a8d4f4-42d1-4c94-b2e2-4529371284c3 <- checkout this video too.
Untitled.video.-.Made.with.Clipchamp.20.mp4