snippet
snippet copied to clipboard
Small tips for great features
-
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.

Hi @Nickyg001
Thanks for your suggestions.
Please see https://github.com/devon2018/snippet/issues/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
I sincerely hope that you will take this suggestion into consideration.
For years I have been using Dreamweaver, I am trying to switch to VS CODE and the most boring thing is the snippets in vscode (although I appreciate the variables $ 1 ..).
In dreamweaver with a simple panel I can collect in specific folders, archived according to my needs (and not according to the "html, php ... etc" code in use.
In a nanosecond I find and select what interests me by clicking and apply it in the document.
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.