Skip to content
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

Dynamic snippets #28

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

MatejKastak
Copy link
Member

@MatejKastak MatejKastak commented Nov 15, 2022

  • Fix tests

@MatejKastak MatejKastak force-pushed the 14-implement-system-for-dynamic-snippets-based-on-the-user-configuration branch from ebf48bb to c1c2eee Compare November 20, 2022 20:09
snippet.append_text("\tstrings:\n\t\t")
snippet.append_placeholder(r"\$name")
snippet.append_text(" = ")
snippet.append_choice(('"string"', "/regex/", "{ HEX }"))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always wanted to provide a tabstop in these choices so user's could easily swap out the string, regex, and HEX text, but I could never figure out a way to do it with the VSCode API. It's a small quality improvement, but that may be something worth looking into more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Implement system for dynamic snippets based on the user configuration
2 participants