Skip to content

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

Open
Nickyg001 opened this issue Oct 24, 2020 · 4 comments
Open

Small tips for great features #17

Nickyg001 opened this issue Oct 24, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@Nickyg001
Copy link

Nickyg001 commented Oct 24, 2020

  1. As already suggested, implement the use of Variables $ 1, $ 2 .... (which is a nice feature offered by VS CODE)

  2. 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.

dreamweaver snippets

@devon2018
Copy link
Owner

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

@devon2018 devon2018 added the enhancement New feature or request label Oct 30, 2020
@Nickyg001
Copy link
Author

Nickyg001 commented Oct 30, 2020

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.
mark

@charlescleivin
Copy link

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.

@coolemur
Copy link

coolemur commented May 4, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants