-
Notifications
You must be signed in to change notification settings - Fork 9
Small tips for great features #17
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
Comments
Hi @Nickyg001 Thanks for your suggestions. Please see #16 regarding variables. And regarding the custom folders update, it is something i will definitely keep in mind for future releases. Thanks, Devon |
hello @devon2018 Instead now natively in vscode, I have to remember the exact name to activate the snippet, and this snippet only applies in a specific code document ... so php in php, html in html, css in css ... Trivial example, if I have to create a theme for wordpress where the files are all php, but the php does nothing but dynamize the html code, so if I have a snippet of html code to insert in a php page (inside a loop or other), this snippet does not apply because it says here the page is php you want to insert html !! as you can see in the dreamweaver panel, in addition to applying the snippet with the double click, a text trigger is also inserted (for those with a good memory) :) I hope soon to see such improvements, I have not found any extension for vscode that does this thing, the only one very similar to what I am interested in is yours, with the limitations that I told you (so archiving only according to code and not in folders, subfolders). ps: it would be nice to be able to highlight your favorite snippets even with a different color so as to identify them faster. |
I recently downloaded this extension and I was a bit disappointed I could not reorganize the snippets. I can't select the order they should display and that feels a bit strange. Also I support the folder solution. Really excited to see this being added. |
I'll add another small tip what could be implemented in this awesome extension: When you start vscode, snippets doesn't work until you click on side bar's snippets view. This might be minor fix (not sure tho): initialize snippets on vscode startup. |
As already suggested, implement the use of Variables $ 1, $ 2 .... (which is a nice feature offered by VS CODE)
Currently it is possible to "catalog" the snippets only through belonging code languages (CSS, PHP, JS, HTML ....)
Wouldn't it be better if this logic is more flexible by being able to archive and collect your own snippets according to customized folders? example:
Folder A
Folder A1
- snippets 1 - html
- snippets 2 - js
- snippets 3 - php
- snippets 4 - css
Folder A2
- snippets 1 - html
- snippets 2 - js
- snippets 3 - php
- snippets 4 - css
Folder B
- snippets 1
- snippets 2
- snippets 3
- snippets 4
as is currently possible in dreamweaver
https://www.youtube.com/watch?v=4fLU36ezotg
in my opinion it would be better to group codes by specific commands.
for example I could create a WP LOOP folder and insert all the codes relating to the loops inside, or a folder for wp template tags, etc.
currently he separates them for me only by source code but he puts them all scattered and it becomes a mess to find the code entry that interests me.
The text was updated successfully, but these errors were encountered: