Skip to content

Dynamic snippets#28

Open
MatejKastak wants to merge 10 commits into
masterfrom
14-implement-system-for-dynamic-snippets-based-on-the-user-configuration
Open

Dynamic snippets#28
MatejKastak wants to merge 10 commits into
masterfrom
14-implement-system-for-dynamic-snippets-based-on-the-user-configuration

Conversation

@MatejKastak

@MatejKastak MatejKastak commented Nov 15, 2022

Copy link
Copy Markdown
Member
  • 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
Comment thread yls/snippets.py
snippet.append_text("\tstrings:\n\t\t")
snippet.append_placeholder(r"\$name")
snippet.append_text(" = ")
snippet.append_choice(('"string"', "/regex/", "{ HEX }"))

Copy link
Copy Markdown

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