You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice if parameters were supported for snippets. This would probably work similar to variables but the value is entered as an argument/parameter instead (unless it's possible to trigger an actual prompt asking for input). Then you could for example create a snippet like this:
You would call is with "repeat5 hello" and get the string "hello hello hello hello hello" back. This specific example is not super useful (a repeat command would be more useful if there is scripting to enable "repeat hello 5"). However parameter support in itself can be a time saver, for example if you have a long SQL query as a snippet but you need to add a search key in the middle of the query (possibly in multiple places).
The text was updated successfully, but these errors were encountered:
This is pretty complicated. I'm not sure it could even be done in a plugin in a way that makes sense or even at all. If someone wants to work on this, by all means. I have no interest in this feature.
I think it would be nice if parameters were supported for snippets. This would probably work similar to variables but the value is entered as an argument/parameter instead (unless it's possible to trigger an actual prompt asking for input). Then you could for example create a snippet like this:
repeast5=${par:1} ${par:1} ${par:1} ${par:1} ${par:1}
You would call is with "repeat5 hello" and get the string "hello hello hello hello hello" back. This specific example is not super useful (a repeat command would be more useful if there is scripting to enable "repeat hello 5"). However parameter support in itself can be a time saver, for example if you have a long SQL query as a snippet but you need to add a search key in the middle of the query (possibly in multiple places).
The text was updated successfully, but these errors were encountered: