-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support code snippets in VSCode #10
Comments
Hi 👋, thanks for using YLS. I am glad you like it. We can add snippets for sure! However, here I would need some help from you to find what snippets would you like and what should be a trigger word. Meta section of the rules and snippets in general kind of differs based on author, project, etc. We can make some generic rule snippet like you are suggesting. Would you prefer exactly the one you have on gif? Do you use snippets for any other parts of the rule, we can add them also. I found that this was originally implemented here but it was dropped in favor of generating the snippets dynamically. For the start I can deliver you the static snippets faster, so I suggest we start with that. If you have preference we can add a similar mechanism with dynamic snippets later. |
I appreciate being able to easily customize and share metadata snippets and condition snippets I would appreciate custom CCCS-YARA metadata snippets. Full CCCS-YARA validation (unique, optional, values, MITRE CTI) would be great. Additional metadata enhancements, like to updating the |
Thanks for the prompt reply Matej! Yeah I think that having this generic static snipper will be a very nice first step. What bothered me with vscode-yara that it was moved to only use dyamic snippets, and this makes it a steeper learning curve for users. An entry-level user just wants a very nice thing that works out-of-the-box, rather then being forced to building their own snippets. And regarding the yls plugin, even before snippets, basic keywords in Yara weren't autocomoleted (rule, condition, strings,...) and it took me several minutes to understand that the plugin just lacks this autocomolete, as I expected these words to be autocomoleted. For your question, I use snippets mainly for |
Thank you both for the valuable feedback! Action items in this PR:
I will extract some ideas from this conversation and transform them to issues:
I am not sure how we could do this:
|
Thank you Matej! :) |
Hey! I love YLS so far, thank you!
I am missing the Code Snippets functionality. VS Code plugins has a nice way to implement code snippets to aid the process of authoring code (or yara rules).
I'd love to see something like this in the VSCode plugin:
The text was updated successfully, but these errors were encountered: